/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

/* ===== BODY ===== */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdf6f0, #f5e9de); /* Warm soft gradient */
}

/* ===== AUTH CARD ===== */
.auth-container {
    width: 100%;
    max-width: 400px;
    background: #ffffff; /* clean white card */
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* soft shadow */
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== HEADER ===== */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #222222; /* dark gray text */
}

.auth-header p {
    font-size: 14px;
    color: #555555; /* muted gray */
    margin-top: 6px;
}

/* ===== FORM ===== */
form {
    display: none;
}

form.active {
    display: block;
    animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #555555;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d1bfa1; /* soft beige border */
    font-size: 14px;
    background: #fcfaf7; /* warm white */
    transition: 0.25s;
}

.form-group input:focus {
    outline: none;
    border-color: #bfa171; /* accent color on focus */
    background: #fefbf5;
}

/* ===== ERROR ===== */
.error {
    font-size: 12px;
    color: #c53030; /* red */
    margin-top: 5px;
    display: none;
}

/* ===== PASSWORD ===== */
.passwordDiv {
    position: relative;
    display: flex;
}

.toggle-pass {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    color: #555555;
    font-weight: 500;
    user-select: none;
    padding: 0 8px;
}

/* ===== BUTTON ===== */
button {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #bfa171, #9c7a55); /* warm gradient button */
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(191, 161, 113, 0.35);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== SWITCH ===== */
.switch {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #777777;
}

.switch span {
    color: #bfa171; /* accent warm color */
    font-weight: 600;
    cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
    .auth-container {
        margin: 16px;
        padding: 26px;
    }
}
