/* =========================================================
   SMART TO-DO — AUTHENTICATION
   Premium Greige / AI Editorial Theme
========================================================= */

:root {
    --bg: #F5F2ED;
    --bg-soft: #EEE9E2;

    --white: #FFFFFF;

    --greige-light: #E6D9C9;
    --greige: #D8CBBB;

    --mineral: #B4ACA1;

    --taupe: #A6988A;
    --taupe-dark: #8D837A;

    --charcoal: #292725;
    --sidebar: #4A4640;

    --text: #3F3A35;
    --muted: #777069;

    --border: #D8D1C8;

    --green: #87927F;
    --blue-gray: #7F8B8D;
    --rose-gray: #A98983;

    /* IMPORTANT AI ACCENT */
    --ai-accent: #7D7180;

    --shadow: 0 18px 50px rgba(72, 63, 54, 0.10);
    --shadow-soft: 0 8px 25px rgba(72, 63, 54, 0.07);

    --radius: 18px;

    --container: 1180px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    height: 82px;

    z-index: 1000;

    background: rgba(245, 242, 237, 0.90);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(216, 209, 200, 0.65);
}

.container {
    width: min(1180px, calc(100% - 50px));
    margin: auto;
}

.nav-inner {
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* BRAND */

.brand {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    color: var(--charcoal);

    font-size: 21px;
    font-weight: 700;

    letter-spacing: -0.5px;
}

.brand > span:last-child > span {
    color: var(--taupe-dark);
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--sidebar);
    color: white;

    font-size: 16px;
}


/* BACK HOME */

.back-home {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--muted);

    font-size: 14px;
    font-weight: 500;

    transition: 0.3s ease;
}

.back-home span {
    transition: transform 0.3s ease;
}

.back-home:hover {
    color: var(--charcoal);
}

.back-home:hover span {
    transform: translateX(-4px);
}


/* =========================================================
   AUTH PAGE
========================================================= */

.auth-page {
    min-height: 100vh;

    padding-top: 82px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 8% 30%,
            rgba(216, 203, 187, 0.40),
            transparent 28%
        ),
        radial-gradient(
            circle at 95% 80%,
            rgba(125, 113, 128, 0.09),
            transparent 25%
        ),
        var(--bg);
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.auth-container {
    width: min(1180px, calc(100% - 50px));

    margin: 55px auto;

    min-height: 680px;

    display: grid;
    grid-template-columns: 1fr 0.88fr;

    border-radius: 28px;

    overflow: hidden;

    background: var(--white);

    box-shadow:
        0 30px 80px rgba(72, 63, 54, 0.12),
        0 4px 15px rgba(72, 63, 54, 0.05);
}


/* =========================================================
   LEFT INTRO
========================================================= */

.auth-intro {
    position: relative;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 65px 65px 45px;

    color: white;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(166, 152, 138, 0.35),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #4A4640 0%,
            #3D3934 55%,
            #332F2C 100%
        );
}


/* decorative circles */

.intro-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.decoration-one {
    width: 390px;
    height: 390px;

    right: -170px;
    top: -170px;

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.decoration-two {
    width: 270px;
    height: 270px;

    right: -100px;
    top: -100px;

    border: 1px solid rgba(255, 255, 255, 0.06);
}


/* intro content */

.intro-content {
    position: relative;
    z-index: 2;

    max-width: 500px;
}


/* AI BADGE */

.ai-badge {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 14px;

    margin-bottom: 36px;

    border-radius: 100px;

    border: 1px solid rgba(255, 255, 255, 0.16);

    background: rgba(255, 255, 255, 0.07);

    color: #E7E1DA;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.4px;
}

.ai-badge span {
    color: #C8BBCB;
    font-size: 15px;
}


/* INTRO HEADING */

.auth-intro h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(48px, 5vw, 68px);

    line-height: 0.98;

    letter-spacing: -2.5px;

    font-weight: 700;

    margin-bottom: 28px;
}

.auth-intro h1 span {
    color: #C9BCAC;
}


/* INTRO PARAGRAPH */

.auth-intro > .intro-content > p {
    max-width: 450px;

    color: #C4BEB7;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   INTRO FEATURES
========================================================= */

.intro-features {
    margin-top: 45px;

    display: flex;
    flex-direction: column;

    gap: 20px;
}

.intro-feature {
    display: flex;
    align-items: center;

    gap: 15px;
}

.feature-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);

    color: #D6C9BB;

    font-size: 15px;
}

.intro-feature strong {
    display: block;

    margin-bottom: 3px;

    color: #F5F1EB;

    font-size: 13px;
    font-weight: 600;
}

.intro-feature span {
    color: #98928C;

    font-size: 12px;
}


/* =========================================================
   INTRO BOTTOM
========================================================= */

.intro-bottom {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 10px;

    color: #8F8983;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.4px;
}

.intro-bottom .line {
    width: 24px;
    height: 1px;

    background: rgba(255, 255, 255, 0.15);
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    background: #FCFBF9;

    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card-inner {
    width: 100%;
    max-width: 455px;

    padding: 55px 55px;
}


/* =========================================================
   FORMS
========================================================= */

.auth-form {
    display: none;

    animation: fadeIn 0.45s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   FORM HEADING
========================================================= */

.form-heading {
    margin-bottom: 34px;
}

.small-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 11px;

    background: rgba(125, 113, 128, 0.10);

    color: var(--ai-accent);

    font-size: 16px;
}

.section-label {
    display: block;

    margin-bottom: 10px;

    color: var(--taupe-dark);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}

.form-heading h2 {
    font-family: "Playfair Display", serif;

    color: var(--charcoal);

    font-size: 42px;

    line-height: 1.05;

    letter-spacing: -1.5px;

    margin-bottom: 15px;
}

.form-heading h2 span {
    color: var(--taupe-dark);
}

.form-heading p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;

    max-width: 360px;
}


/* =========================================================
   INPUTS
========================================================= */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);

    font-size: 12px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;

    left: 16px;

    color: var(--mineral);

    font-size: 14px;

    pointer-events: none;

    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    height: 50px;

    padding: 0 45px;

    border: 1px solid var(--border);

    border-radius: 12px;

    outline: none;

    background: var(--white);

    color: var(--charcoal);

    font-size: 13px;

    transition: 0.25s ease;
}

.input-wrapper input::placeholder {
    color: #AAA39B;
}

.input-wrapper input:hover {
    border-color: var(--greige);
}

.input-wrapper input:focus {
    border-color: var(--taupe);

    box-shadow:
        0 0 0 4px rgba(166, 152, 138, 0.10);
}


/* PASSWORD */

.password-toggle {
    position: absolute;

    right: 14px;

    border: none;

    background: transparent;

    color: var(--mineral);

    font-size: 13px;
}

.password-toggle:hover {
    color: var(--charcoal);
}


/* =========================================================
   TWO INPUTS
========================================================= */

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


/* =========================================================
   FORM OPTIONS
========================================================= */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 4px 0 23px;
}

.remember,
.terms {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 11px;

    cursor: pointer;
}

.remember input,
.terms input {
    display: none;
}

.checkmark {
    width: 15px;
    height: 15px;

    border: 1px solid var(--border);

    border-radius: 4px;

    background: white;

    position: relative;

    flex-shrink: 0;
}

.remember input:checked + .checkmark,
.terms input:checked + .checkmark {
    background: var(--sidebar);

    border-color: var(--sidebar);
}

.remember input:checked + .checkmark::after,
.terms input:checked + .checkmark::after {
    content: "✓";

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -52%);

    color: white;

    font-size: 9px;
}

.forgot {
    color: var(--taupe-dark);

    font-size: 11px;
    font-weight: 600;
}

.forgot:hover {
    color: var(--charcoal);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-btn {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px 0 21px;

    border: none;

    border-radius: 12px;

    background: var(--sidebar);

    color: white;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.submit-btn:hover {
    background: var(--charcoal);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(74, 70, 64, 0.18);
}

.btn-arrow {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.10);

    transition: transform 0.25s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(3px);
}


/* =========================================================
   DIVIDER
========================================================= */

.divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 24px 0 18px;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);
}

.divider span {
    color: #AAA39B;

    font-size: 10px;
}


/* =========================================================
   SOCIAL LOGIN
========================================================= */

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.social-btn {
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: white;

    color: var(--text);

    font-size: 11px;
    font-weight: 600;

    transition: 0.25s ease;
}

.social-btn:hover {
    border-color: var(--taupe);

    background: var(--bg);

    transform: translateY(-1px);
}

.google-icon {
    font-weight: 700;
    font-size: 14px;
}

.github-icon {
    font-size: 9px;
}


/* =========================================================
   SWITCH LOGIN / REGISTER
========================================================= */

.switch-text {
    margin-top: 26px;

    text-align: center;

    color: var(--muted);

    font-size: 11px;
}

.switch-text button {
    border: none;

    background: transparent;

    color: var(--taupe-dark);

    font-size: 11px;
    font-weight: 700;
}

.switch-text button:hover {
    color: var(--charcoal);
}


/* =========================================================
   TERMS
========================================================= */

.terms {
    margin: 4px 0 20px;

    line-height: 1.5;
}

.terms a {
    color: var(--taupe-dark);

    font-weight: 600;
}

.terms a:hover {
    color: var(--charcoal);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .auth-container {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .auth-intro {
        min-height: 440px;

        padding: 50px;
    }

    .auth-intro h1 {
        font-size: 55px;
    }

    .intro-features {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;

        gap: 15px;
    }

    .intro-feature {
        align-items: flex-start;
    }

    .intro-feature span {
        display: none;
    }

    .intro-bottom {
        margin-top: 35px;
    }

}


@media (max-width: 650px) {

    .container {
        width: calc(100% - 35px);
    }

    .auth-container {
        width: calc(100% - 30px);

        margin: 30px auto 40px;

        border-radius: 22px;
    }

    .auth-intro {
        padding: 40px 30px;

        min-height: 420px;
    }

    .auth-intro h1 {
        font-size: 48px;

        letter-spacing: -1.8px;
    }

    .auth-intro > .intro-content > p {
        font-size: 13px;
    }

    .intro-features {
        display: flex;

        gap: 15px;

        margin-top: 30px;
    }

    .intro-feature strong {
        font-size: 12px;
    }

    .intro-bottom {
        display: none;
    }

    .auth-card-inner {
        padding: 42px 27px;
    }

    .form-heading h2 {
        font-size: 36px;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .back-home {
        font-size: 12px;
    }

}


@media (max-width: 400px) {

    .auth-intro {
        padding: 35px 23px;
    }

    .auth-intro h1 {
        font-size: 42px;
    }

    .auth-card-inner {
        padding: 35px 21px;
    }

    .form-heading h2 {
        font-size: 32px;
    }

}
/* =========================================================
VERIFICATION / PASSWORD RECOVERY
========================================================= */

.verification-form,
.forgot-form,
.reset-form {
display: none;
opacity: 0;
transform: translateX(20px);
}

.verification-form.active,
.forgot-form.active,
.reset-form.active {
display: block;
animation: authFormIn 0.35s ease forwards;
}

@keyframes authFormIn {


from {
    opacity: 0;
    transform: translateX(20px);
}

to {
    opacity: 1;
    transform: translateX(0);
}


}

.verification-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 18px;

    background: var(--bg-soft);

    color: var(--ai-accent);

    font-size: 24px;

    border: 1px solid var(--border);
}

.verification-form h2,
.forgot-form h2,
.reset-form h2 {
margin-bottom: 12px;
}

.verification-text {
color: var(--muted);


font-size: 14px;

line-height: 1.7;

margin-bottom: 28px;


}

.verification-text strong {
color: var(--text);


font-weight: 600;

word-break: break-word;


}

/* Verification code */

#verificationCode,
#resetCode {
text-align: center;


font-size: 24px;

font-weight: 600;

letter-spacing: 10px;

padding-left: 20px;


}

/* Footer */

.verification-footer {
margin-top: 24px;

text-align: center;

display: flex;

flex-direction: column;

align-items: center;

gap: 10px;

}

.verification-footer p {
margin: 0;


color: var(--muted);

font-size: 13px;


}

.text-btn,
.back-auth-btn {
border: none;


background: transparent;

cursor: pointer;

font-family: inherit;

font-size: 13px;

transition: 0.25s ease;


}

.text-btn {
    color: var(--ai-accent);
    font-weight: 600;
}

.text-btn:hover {
color: var(--charcoal);

transform: translateY(-1px);


}

.back-auth-btn {
color: var(--muted);


margin-top: 8px;


}

.back-auth-btn:hover {
color: var(--text);
}

/* Password fields */



.password-toggle {
position: absolute;


right: 14px;

bottom: 12px;

border: none;

background: transparent;

color: var(--muted);

cursor: pointer;

font-size: 15px;

transition: 0.2s ease;

}

.password-toggle:hover {
color: var(--text);
}

/* Forgot link */

.forgot-link {
cursor: pointer;
}

/* Disabled buttons */

.submit-btn:disabled,
.text-btn:disabled {
opacity: 0.55;


cursor: not-allowed;

transform: none;


}

/* Mobile */

@media (max-width: 600px) {

    .verification-form h2,
    .forgot-form h2,
    .reset-form h2 {
        font-size: 26px;
    }

    #verificationCode,
    #resetCode {
        font-size: 16px;

        letter-spacing: 6px;
    }

}