/* ============================================
   Login Page Styles - Full-Screen Modern UI
   Following DESIGN.md "The Curated Canvas"
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/*--------- CSS Variables (DESIGN.md tokens) -----------*/
:root {
    --surface: #fbf9f6;
    --surface-container-low: #f5f3f0;
    --surface-container-lowest: #ffffff;
    --surface-container-high: #e8e8e3;
    --primary: #5f5e5e;
    --on-surface: #31332f;
    --on-surface-variant: #5d605b;
    --warm-tan: #A9907E;
    --dark-brown: #675D50;
    --cream: #F3DEBA;
    --sage: #ABC4AA;
    --error: #9e422c;
    --outline-variant: rgba(138, 141, 136, 0.3);
}

/*--------- Full-Screen Login Container -----------*/
.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container-low) 50%, var(--surface-container-high) 100%);
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}

/*--------- Gradient Background Accents -----------*/
.login-page::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(243, 222, 186, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(171, 196, 170, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/*--------- Login Card -----------*/
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: var(--surface-container-lowest);
    border-radius: 0.25rem;
    padding: 3rem 2.5rem;
    box-shadow: 32px 32px 0 rgba(49, 51, 47, 0.04);
    -webkit-box-shadow: 32px 32px 0 rgba(49, 51, 47, 0.04);
}

/*--------- Left Panel (Branding) -----------*/
.login-branding {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 3rem;
    color: var(--on-surface);
}

.login-branding .brand-tagline {
    font-family: 'Noto Serif', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--on-surface);
}

.login-branding .brand-subtext {
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--on-surface-variant);
    max-width: 320px;
}

/*--------- Login Form Header -----------*/
.login-form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.login-form-header h2 {
    font-family: 'Noto Serif', serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.login-form-header p {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
}

/*--------- Form Fields -----------*/
.login-form .form-field {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
}

.login-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: var(--on-surface);
    background: var(--surface-container-low);
    border: none;
    border-radius: 0.25rem;
    outline: none;
    transition: all 0.2s ease;
}

.login-form .form-input::placeholder {
    color: var(--on-surface-variant);
    opacity: 0.5;
}

.login-form .form-input:focus {
    background: var(--surface-container-lowest);
    box-shadow: 0 0 0 3px rgba(171, 196, 170, 0.2);
}

.login-form .form-input.error {
    background: rgba(158, 66, 44, 0.08);
    box-shadow: 0 0 0 3px rgba(158, 66, 44, 0.15);
}

/*--------- Remember Me Checkbox -----------*/
.login-form .remember-field {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.login-form .remember-field input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--outline-variant);
    border-radius: 0.25rem;
    background: var(--surface-container-low);
    cursor: pointer;
    position: relative;
    margin-right: 0.625rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.login-form .remember-field input[type="checkbox"]:checked {
    background: var(--sage);
    border-color: var(--sage);
}

.login-form .remember-field input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-form .remember-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    cursor: pointer;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
}

/*--------- Submit Button -----------*/
.login-form .btn-login {
    width: 100%;
    padding: 0.875rem 2rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: var(--warm-tan);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-form .btn-login:hover {
    background: var(--dark-brown);
    color: #ffffff;
}

.login-form .btn-login:active {
    transform: scale(0.98);
}

/*--------- Helper Text -----------*/
.login-form .form-helper {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    opacity: 0.7;
    margin-top: 0.375rem;
}

/*--------- Error Messages -----------*/
.login-error {
    margin-bottom: 1.5rem;
    padding: 0.875rem 1rem;
    background: rgba(158, 66, 44, 0.08);
    border-radius: 0.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    color: var(--error);
    text-align: center;
}

/*--------- Login Footer Link -----------*/
.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer a {
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    text-decoration: none;
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.login-footer a:hover {
    color: var(--warm-tan);
    border-bottom-color: var(--warm-tan);
}

/*--------- Responsive: Tablet -----------*/
@media (max-width: 991px) {
    .login-branding {
        display: none;
    }

    .login-card {
        max-width: 100%;
        padding: 2.5rem 2rem;
    }
}

/*--------- Responsive: Mobile -----------*/
@media (max-width: 575px) {
    .login-page {
        align-items: flex-start;
        padding: 2rem 1rem;
    }

    .login-card {
        max-width: 100%;
        padding: 2rem 1.25rem;
        box-shadow: none;
        -webkit-box-shadow: none;
    }

    .login-form-header h2 {
        font-size: 1.75rem;
    }

    .login-form .form-input {
        padding: 0.75rem 0.875rem;
    }

    .login-form .btn-login {
        padding: 0.75rem 1.5rem;
    }
}

/* ============================================
   Password Reset Page Styles
   ============================================ */

/*--------- PwReset Page Container -----------*/
.pwdreset-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container-low) 50%, var(--surface-container-high) 100%);
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}

.pwdreset-page::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(243, 222, 186, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.pwdreset-page::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(171, 196, 170, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/*--------- PwReset Card -----------*/
.pwdreset-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: var(--surface-container-lowest);
    border-radius: 0.25rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 32px 0 rgba(49, 51, 47, 0.04);
    -webkit-box-shadow: 0 32px 0 rgba(49, 51, 47, 0.04);
}

/*--------- PwReset Header -----------*/
.pwdreset-header {
    margin-bottom: 2rem;
    text-align: center;
}

.pwdreset-header h2 {
    font-family: 'Noto Serif', serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.pwdreset-header p {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
}

/*--------- User Info Block -----------*/
.pwdreset-user-info {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.pwdreset-user-info .info-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem 1rem;
}

.pwdreset-user-info .info-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

.pwdreset-user-info .info-value {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--on-surface);
}

/*--------- PwReset Form Section -----------*/
.pwdreset-form-section {
    margin-top: 2rem;
    padding-top: 2rem;
}

.pwdreset-form-section h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
}

.pwdreset-form .form-field {
    margin-bottom: 1.25rem;
}

.pwdreset-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: var(--on-surface);
    background: var(--surface-container-low);
    border: none;
    border-radius: 0.25rem;
    outline: none;
    transition: all 0.2s ease;
}

.pwdreset-form .form-input::placeholder {
    color: var(--on-surface-variant);
    opacity: 0.5;
}

.pwdreset-form .form-input:focus {
    background: var(--surface-container-lowest);
    box-shadow: 0 0 0 3px rgba(171, 196, 170, 0.2);
}

.pwdreset-form .btn-pwdreset {
    width: 100%;
    padding: 0.875rem 2rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: var(--warm-tan);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.pwdreset-form .btn-pwdreset:hover {
    background: var(--dark-brown);
    color: #ffffff;
}

.pwdreset-form .btn-pwdreset:active {
    transform: scale(0.98);
}

/*--------- PwReset Footer Link -----------*/
.pwdreset-footer {
    margin-top: 2rem;
    text-align: center;
}

.pwdreset-footer a {
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    text-decoration: none;
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.pwdreset-footer a:hover {
    color: var(--warm-tan);
    border-bottom-color: var(--warm-tan);
}

/*--------- Responsive: PwReset -----------*/
@media (max-width: 575px) {
    .pwdreset-page {
        align-items: flex-start;
        padding: 2rem 1rem;
    }

    .pwdreset-card {
        max-width: 100%;
        padding: 2rem 1.25rem;
        box-shadow: none;
        -webkit-box-shadow: none;
    }

    .pwdreset-header h2 {
        font-size: 1.75rem;
    }

    .pwdreset-user-info .info-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .pwdreset-form .form-input {
        padding: 0.75rem 0.875rem;
    }

    .pwdreset-form .btn-pwdreset {
        padding: 0.75rem 1.5rem;
    }
}
