* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3eee5;
    color: #2f2924;
}

a {
    text-decoration: none;
}


/* =========================================================
   AUTH PAGE
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 50px 20px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(139, 63, 22, 0.06),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(48, 64, 40, 0.07),
            transparent 32%
        ),
        #f3eee5;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand-name {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 700;

    color: #4a2818;
}

.brand-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #304028;
    color: #f7f1e7;

    font-family: Georgia, serif;
    font-size: 22px;
}

.brand p {
    margin: 8px 0 0;

    font-family: Georgia, serif;
    font-style: italic;

    color: #817568;
}


/* =========================================================
   CARD
   ========================================================= */

.auth-card {
    background: #fffdf9;

    border: 1px solid #ded5c8;
    border-radius: 16px;

    padding: 32px;

    box-shadow:
        0 8px 24px rgba(68, 48, 35, 0.08);
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading div{
    display: flex;
}

.auth-heading p{
    padding-left: 35px;
}

.back-link {
        width: 36px;
        height: 36px;
        padding: 8px;
        font-size: 18px;
    }

.auth-heading h1 {
    margin: 0 0 6px;

    font-family: Georgia, serif;
    font-size: 28px;

    color: #3d2619;
}

.auth-heading p {
    margin: 0;

    color: #817568;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;

    color: #5b5047;
}

.form-field input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #ded8cf;
    border-radius: 10px;

    background: #f7f3ec;

    color: #302a25;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus {
    border-color: #8b3f16;
    background: #fffdf9;

    box-shadow: 0 0 0 3px rgba(139, 63, 22, 0.08);
}

.form-field input::placeholder {
    color: #aaa096;
}


/* =========================================================
   ERRORS
   ========================================================= */

.form-errors,
.field-error {
    color: #b42318;
}

.form-errors {
    margin-bottom: 20px;
    padding: 12px;

    border: 1px solid #f0c8c4;
    border-radius: 8px;

    background: #fff1ef;

    font-size: 14px;
}

.field-error {
    margin: 6px 0 0;
    font-size: 12px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.primary-button {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 11px;

    background: #8b3f16;
    color: #fffaf3;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 14px rgba(139, 63, 22, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button:hover {
    background: #743312;

    box-shadow:
        0 7px 16px rgba(139, 63, 22, 0.22);
}

.primary-button:active {
    transform: translateY(1px);
}

.guest-button {
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d8cfc3;
    border-radius: 11px;

    background: #fffdf9;
    color: #493e36;

    font-size: 14px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.guest-button:hover {
    background: #f5f0e8;
    border-color: #c8b9a8;
}


/* =========================================================
   PASSWORD VISIBILITY TOGGLE
   ========================================================= */

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 14px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    padding: 0;

    border: none;
    background: transparent;

    color: #817568;

    cursor: pointer;
}

.password-toggle:hover {
    color: #8b3f16;
}

.eye-icon {
    width: 18px;
    height: 18px;
}


/* =========================================================
   GOOGLE LOGIN
   ========================================================= */

.social-login {
    margin-top: 16px;
}

.google-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 16px;

    border: 1px solid #d8d1c8;
    border-radius: 8px;

    background: #fffdf9;
    color: #3f3832;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.google-button:hover {
    background: #f6f1e9;
    border-color: #c8bcae;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 24px 0;
}

.divider span {
    height: 1px;
    flex: 1;

    background: #ded7ce;
}

.divider p {
    margin: 0;

    color: #93887e;
    font-size: 13px;
}


/* =========================================================
   LINKS
   ========================================================= */

.forgot-password {
    text-align: right;
    margin-top: -8px;
}

.forgot-password a {
    color: #8b3f16;
    font-size: 13px;
}

.forgot-password a:hover {
    color: #6f3011;
}

.switch-auth {
    margin: 24px 0 0;

    text-align: center;

    color: #81776e;
    font-size: 14px;
}

.switch-auth a {
    color: #304028;
    font-weight: 600;
}

.switch-auth a:hover {
    color: #24311f;
}

#resend-link {
    padding: 0;
    border: none;

    background: transparent;
    color: #8b3f16;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

#resend-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

    .auth-page {
        padding: 30px 16px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .brand-name {
        font-size: 28px;
    }
}