:root {
    /* Colors */
    --cream:          #F5F0E8;
    --cream-dark:     #EDE6D8;
    --white:          #FFFFFF;
    --stone:          #C8BCA8;
    --stone-dark:     #9E9080;
    --charcoal:       #2C2826;
    --charcoal-md:    #4A4440;
    --charcoal-light: #6B625C;
    --accent:         #8B6F47;
    --accent-light:   #B8956A;
    --accent-pale:    #F0E8DC;

    /* Semantic */
    --error:       #C0392B;
    --error-bg:    #FDF0EE;
    --success:     #2C7A4B;
    --success-bg:  #EEF7F2;
    --warning:     #B7770D;
    --warning-bg:  #FEF9EC;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;

    /* Borders */
    --border:      #D9D0C2;
    --radius-sm:   6px;
    --radius:      10px;
    --radius-lg:   16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 4px rgba(44,40,38,0.08);
    --shadow:    0 4px 16px rgba(44,40,38,0.10);
    --shadow-lg: 0 12px 40px rgba(44,40,38,0.16);
    --shadow-xl: 0 24px 64px rgba(44,40,38,0.20);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition:      0.22s ease;
    --transition-slow: 0.4s ease;

    /* Navbar */
    --navbar-height: 64px;
    --navbar-bg:     rgba(28, 25, 23, 0.97);

    /* Footer */
    --footer-bg: #1A1816;
}

/* RESET & BASE*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Push content below fixed navbar */
main {
    flex: 1;
    padding-top: var(--navbar-height);
}

/* Auth pages don't need the offset */
body.page-auth main {
    padding-top: 0;
}

img, video { max-width: 100%; height: auto; display: block; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--accent-light); }

ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


/* TYPOGRAPHY*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem,  3vw, 2rem);    }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem;    }
h6 { font-size: 0.875rem; }

p { color: var(--charcoal-md); margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

.text-muted  { color: var(--stone-dark) !important; }
.text-accent { color: var(--accent) !important; }
.text-label  {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-dark);
}


/* BOOTSTRAP OVERRIDES*/
.container, .container-fluid {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.form-control, .form-select {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--charcoal);
    background-color: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(139,111,71,0.12);
    color: var(--charcoal);
}
.form-control::placeholder { color: var(--stone); }
.form-control.is-invalid   { border-color: var(--error); }
.invalid-feedback          { color: var(--error); font-size: 0.78rem; }

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}
.modal-header { border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.modal-footer { border-top:  1px solid var(--border); padding: 1rem 1.5rem; }

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    font-size: 0.88rem;
}
.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    color: var(--charcoal-md);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--accent-pale);
    color: var(--accent);
}


/* UTILITY CLASSES*/
.section-pad    { padding: var(--space-3xl) 0; }
.section-pad-sm { padding: var(--space-xl) 0; }
.bg-cream       { background-color: var(--cream); }
.bg-dark        { background-color: var(--charcoal); }
.divider        { border: none; border-top: 1px solid var(--border); margin: var(--space-xl) 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}


/*  NAVBAR (Logo design is intentionally left to
   whoever is building it. This is the base only.*/
.site-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    padding: 0 var(--space-xl);
    gap: var(--space-lg);
}

/* Brand slot */
.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 0.1em;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}
.navbar-brand:hover { opacity: 0.8; }

/* Nav links */
.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
}
.nav-link {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75) !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

/* Search */
.navbar-search {
    flex: 1;
    max-width: 340px;
    position: relative;
}
.navbar-search input {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    padding: 0.42rem 1rem 0.42rem 2.4rem;
    font-size: 0.85rem;
    color: #fff;
    outline: none;
    transition: background var(--transition), border-color var(--transition);
}
.navbar-search input::placeholder { color: rgba(255,255,255,0.35); }
.navbar-search input:focus {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.25);
}
.navbar-search-icon {
    position: absolute;
    left: 0.75rem; top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.35);
    pointer-events: none;
    width: 15px; height: 15px;
}

/* Right actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
    flex-shrink: 0;
}

.navbar-icon-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    padding: 0.45rem;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    transition: color var(--transition-fast), background var(--transition-fast);
    position: relative;
    text-decoration: none;
}
.navbar-icon-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.cart-count {
    position: absolute;
    top: 0; right: 0;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 16px; height: 16px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    transform: translate(30%, -30%);
}

/* Logged-out auth buttons */
.navbar-auth { display: flex; align-items: center; gap: var(--space-sm); }
.btn-nav-login {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    padding: 0.38rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    background: none;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.btn-nav-login:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-nav-register {
    font-size: 0.82rem;
    color: var(--charcoal);
    padding: 0.38rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: none;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition-fast);
    white-space: nowrap;
}
.btn-nav-register:hover { background: var(--cream); color: var(--charcoal); }

/* Profile avatar button */
.navbar-profile { position: relative; }
.navbar-profile-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-full);
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
    overflow: hidden;
}
.navbar-profile-btn:hover { background: rgba(255,255,255,0.2); }

/* Mobile toggle */
.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.5rem;
    color: #fff;
    cursor: pointer;
    margin-left: auto;
    align-items: center;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 1;
}


/* FOOTER */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.5);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-md);
}

.footer-desc {
    font-size: 0.83rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0;
}

.footer-col-title {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: var(--space-md);
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    flex-wrap: wrap;
    gap: var(--space-md);
}
.footer-bottom a {
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.55); }
.footer-bottom-links { display: flex; gap: var(--space-lg); }


/* BUTTONS*/
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.78rem 1.5rem;
    background: var(--charcoal);
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform 0.12s ease;
}
.btn-primary:hover  { background: var(--accent); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1.5px solid var(--charcoal);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.btn-secondary:hover { background: var(--charcoal); color: #fff; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }

.btn-sm { padding: 0.45rem 1rem !important; font-size: 0.78rem !important; }
.btn-lg { padding: 0.9rem 2rem !important; font-size: 0.95rem !important; }

/* Loading spinner inside button */
.btn-loader {
    display: none;
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.btn-primary.loading .btn-text  { display: none; }
.btn-primary.loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/*forms */
.form-group { margin-bottom: 1.15rem; }

.form-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--charcoal-md);
    margin-bottom: 0.45rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.95rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--charcoal);
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.form-input::placeholder { color: var(--stone); }
.form-input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(139,111,71,0.12);
}
.form-input.is-invalid { border-color: var(--error); }

/* Input with button inside (e.g. show/hide password) */
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 2.8rem; }
.input-wrap-btn {
    position: absolute;
    right: 0.75rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--stone-dark);
    cursor: pointer;
    padding: 0.2rem;
    display: flex; align-items: center;
    transition: color var(--transition-fast);
}
.input-wrap-btn:hover { color: var(--accent); }

/* Inline label + link row (e.g. "Password" + "Forgot?") */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.45rem;
}
.label-row .form-label { margin-bottom: 0; }

.form-hint { font-size: 0.75rem; color: var(--stone-dark); margin-top: 0.3rem; }
.field-error { display: block; font-size: 0.75rem; color: var(--error); margin-top: 0.3rem; min-height: 1rem; }

/* Password strength meter */
.pw-strength { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.strength-bar { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; width: 0%; border-radius: 2px; transition: width 0.35s ease, background 0.35s ease; }
.strength-label { font-size: 0.72rem; color: var(--stone-dark); min-width: 3.5rem; text-align: right; }

/* Generic white card */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Movie/Show poster card */
.media-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--charcoal);
    aspect-ratio: 2/3;
}
.media-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity var(--transition);
}
.media-card:hover img { transform: scale(1.05); opacity: 0.65; }

.media-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--space-md);
}
.media-card:hover .media-card-overlay { opacity: 1; }
.media-card-title { font-family: var(--font-display); font-size: 1rem; color: #fff; margin-bottom: 0.2rem; }
.media-card-meta  { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

.media-card-rating {
    position: absolute; top: var(--space-sm); right: var(--space-sm);
    background: rgba(0,0,0,0.65);
    color: #F5C518;
    font-size: 0.7rem; font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}


/* ALERTS & BADGES */
.alert-error {
    background: var(--error-bg);
    border-left: 3px solid var(--error);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: var(--space-lg);
    font-size: 0.83rem;
    color: var(--error);
}
.alert-error ul { list-style: none; padding: 0; }
.alert-error li + li { margin-top: 0.2rem; }

.alert-success {
    background: var(--success-bg);
    border-left: 3px solid var(--success);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: var(--space-lg);
    font-size: 0.83rem;
    color: var(--success);
}
.alert-success a { color: var(--success); font-weight: 500; }

.alert-warning {
    background: var(--warning-bg);
    border-left: 3px solid var(--warning);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: var(--space-lg);
    font-size: 0.83rem;
    color: var(--warning);
}

.badge-genre {
    display: inline-block;
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--accent-pale);
    color: var(--accent);
    border: 1px solid rgba(139,111,71,0.2);
}

.badge-maturity {
    display: inline-block;
    font-size: 0.68rem; font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: 3px;
    border: 1.5px solid var(--charcoal-light);
    color: var(--charcoal-md);
}

body.page-auth {
    background: #f8f7f5;
    min-height: 100vh;
}
body.page-auth main { padding-top: 0; }

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
}

/* Logo */
.auth-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: #111;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 3rem;
    transition: opacity var(--transition-fast);
}
.auth-logo:hover { opacity: 0.5; color: #111; }

/* Card — barely visible, mostly just spacing */
.auth-card {
    width: 100%;
    max-width: 400px;
    animation: fadeUp 0.4s ease both;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.84rem;
    color: #999;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
}

/* Labels */
.auth-card .form-label {
    color: #555;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    font-weight: 500;
}

/* Inputs */
.auth-card .form-input {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #111;
    font-size: 0.92rem;
    padding: 0.75rem 0.95rem;
    transition: border-color 0.2s ease;
}
.auth-card .form-input::placeholder { color: #bbb; }
.auth-card .form-input:focus {
    border-color: #111;
    box-shadow: none;
    background: #fff;
    color: #111;
    outline: none;
}
.auth-card .form-input.is-invalid { border-color: #c0392b; }

.auth-card .input-wrap-btn { color: #bbb; }
.auth-card .input-wrap-btn:hover { color: #555; }

/* Submit button — clean black */
.auth-card .btn-primary {
    background: #111;
    color: #fff !important;
    font-weight: 500;
    font-size: 0.82rem;
    border-radius: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.1s ease;
    padding: 0.82rem;
}
.auth-card .btn-primary:hover { background: #333; box-shadow: none; }
.auth-card .btn-primary .btn-loader {
    border-color: rgba(255,255,255,0.3);
    border-top-color: #fff;
}

/* Back link */
.auth-back {
    display: block;
    font-size: 0.78rem;
    color: #aaa;
    text-decoration: none;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: color var(--transition-fast);
}
.auth-back:hover { color: #111; }

/* Footer */
.auth-footer-text {
    text-align: center;
    font-size: 0.82rem;
    color: #aaa;
    margin-top: 1.5rem;
}
.auth-footer-text a { color: #111; font-weight: 500; text-decoration: none; }
.auth-footer-text a:hover { opacity: 0.6; }

.forgot-link {
    font-size: 0.78rem;
    color: #aaa;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.forgot-link:hover { color: #111; }

/* Alerts */
.auth-card .alert-error {
    background: #fdf0ee;
    border-color: #e0b0aa;
    color: #c0392b;
    border-radius: 4px;
}
.auth-card .alert-success {
    background: #f0f7f3;
    border-color: #a8d4b8;
    color: #2c7a4b;
    border-radius: 4px;
}
.auth-card .alert-success a { color: #2c7a4b; }
.auth-card .field-error { color: #c0392b; }
.auth-card .strength-bar { background: #eee; }
.auth-card .strength-label { color: #aaa; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #ddd;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

@media (max-width: 480px) {
    .auth-card  { max-width: 100%; }
    .auth-logo  { font-size: 1.3rem; margin-bottom: 2rem; }
    .auth-title { font-size: 1.6rem; }
}

/* =============================================
   13. ANIMATIONS
============================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-up { animation: fadeUp 0.4s ease both; }
.animate-fade-in { animation: fadeIn 0.3s ease both; }

/* Stagger children on page load */
.stagger > * { animation: fadeUp 0.4s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }


/* =============================================
   14. RESPONSIVE
============================================= */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .navbar-search { max-width: 200px; }
}

@media (max-width: 768px) {
    :root { --navbar-height: 58px; }

    .site-navbar { padding: 0 var(--space-md); }
    .navbar-toggler { display: flex; }

    .navbar-collapse {
        display: none;
        position: absolute;
        top: var(--navbar-height); left: 0; right: 0;
        background: var(--navbar-bg);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-top: 1px solid rgba(255,255,255,0.07);
    }
    .navbar-collapse.open { display: flex; }
    .navbar-nav { flex-direction: column; align-items: flex-start; width: 100%; }
    .navbar-search { max-width: 100%; width: 100%; }
    .navbar-actions { width: 100%; justify-content: flex-end; }

    /* Auth */
    .auth-left { display: none; }
    .auth-right { width: 100%; padding: 3rem 1.25rem 2rem; align-items: flex-start; }
    .auth-card  { max-width: 100%; }
    .auth-title { font-size: 1.75rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .auth-right { padding: 2.5rem 1rem 2rem; }
    .container, .container-fluid { padding-left: var(--space-md); padding-right: var(--space-md); }
}