* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --danger: #d93025;
    --success: #188038;
    --warning: #f9ab00;
    --bg: #f6f8fc;
    --surface: #ffffff;
    --text: #202124;
    --text-muted: #5f6368;
    --text-light: #80868b;
    --border: #dadce0;
    --border-light: #e8eaed;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.1);
    --shadow: 0 1px 3px rgba(60, 64, 67, 0.15), 0 4px 8px rgba(60, 64, 67, 0.08);
    --shadow-lg: 0 8px 24px rgba(60, 64, 67, 0.12);
    --font: 'Google Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.main-content--centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0 48px;
}

.main-content--landing {
    padding: 0;
}

/* ── Navbar ── */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 50%, #34a853 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-mark svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background 0.15s;
}

.nav-links a:not(.btn):hover {
    background: var(--bg);
}

.nav-user {
    color: var(--text-muted);
    font-size: 0.8125rem;
    padding: 0 8px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

a.btn-primary,
button.btn-primary {
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

a.btn-primary:hover,
button.btn-primary:hover {
    color: #fff;
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: transparent;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.9375rem;
}

.btn-sm {
    padding: 7px 18px;
    font-size: 0.8125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ── Forms ── */
.form-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: 40px 36px;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.form-card--wide {
    max-width: 480px;
}

.form-card h2 {
    margin-bottom: 6px;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.form-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #bdc1c6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.form-group .hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 6px;
}

.form-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.email-field {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.email-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.email-field input,
.email-field select {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.email-field input {
    flex: 1;
    min-width: 0;
}

.email-field__at {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: var(--text-muted);
    background: var(--bg);
    font-size: 0.9375rem;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.email-field__domain {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--text-muted);
    background: var(--bg);
    font-size: 0.875rem;
    white-space: nowrap;
}

.email-field select {
    background: var(--bg);
    padding-right: 28px;
    min-width: 140px;
}

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5c6c2;
}

.alert-success {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #b7dfc3;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid #c2d7f7;
}

.alert-warning {
    background: #fef7e0;
    color: #b06000;
    border: 1px solid #f5dfa3;
}

/* ── Landing: Hero ── */
.hero-modern {
    padding: 72px 0 80px;
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    overflow: hidden;
    position: relative;
}

.hero-modern__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-modern__content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-modern__content h1 em {
    font-style: normal;
    color: var(--primary);
}

.hero-modern__lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-modern__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-modern__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.hero-mockup__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
}

.hero-mockup__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.hero-mockup__dot:first-child { background: #ea4335; }
.hero-mockup__dot:nth-child(2) { background: #fbbc04; }
.hero-mockup__dot:nth-child(3) { background: #34a853; }

.hero-mockup__body {
    padding: 20px;
}

.hero-mockup__inbox-item {
    display: flex;
    gap: 12px;
    padding: 14px 12px;
    border-radius: var(--radius);
    margin-bottom: 4px;
    transition: background 0.15s;
}

.hero-mockup__inbox-item:hover {
    background: var(--bg);
}

.hero-mockup__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.hero-mockup__meta {
    flex: 1;
    min-width: 0;
}

.hero-mockup__sender {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.hero-mockup__subject {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-mockup__time {
    font-size: 0.75rem;
    color: var(--text-light);
    flex-shrink: 0;
}

/* ── Landing: Features ── */
.features-section {
    padding: 64px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.375rem;
}

.feature-card__icon--blue { background: #e8f0fe; }
.feature-card__icon--green { background: #e6f4ea; }
.feature-card__icon--yellow { background: #fef7e0; }
.feature-card__icon--red { background: #fce8e6; }

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── Landing: CTA ── */
.cta-band {
    background: var(--primary);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}

.cta-band h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-band p {
    opacity: 0.9;
    margin-bottom: 28px;
    font-size: 1rem;
}

.cta-band .btn-primary {
    background: #fff;
    color: var(--primary);
}

.cta-band .btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ── Auth pages ── */
body.auth-page {
    background: #fff;
}

body.auth-page .footer {
    display: none;
}

body.auth-page .main-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 1024px) {
    body.auth-page {
        background: #eef2f6;
    }

    .auth-shell {
        justify-content: center;
        padding: 28px 24px 36px;
    }

    .auth-frame {
        flex: 0 1 auto;
        max-width: 920px;
        margin: 0 auto;
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(60, 64, 67, 0.06), 0 12px 32px rgba(60, 64, 67, 0.1);
        border: 1px solid rgba(218, 220, 224, 0.8);
        background: #fff;
    }

    .auth-topbar {
        border-bottom: 1px solid var(--border-light);
    }

    .auth-split {
        min-height: 540px;
    }

    .auth-brand {
        padding: 48px 52px;
    }

    .auth-brand__content {
        max-width: 360px;
        margin: 0 auto;
    }

    .auth-form-panel {
        padding: 40px 36px;
    }
}

@media (min-width: 1280px) {
    .auth-frame {
        max-width: 880px;
    }
}

/* ── Register: single centered card ── */
body.auth-register-page {
    background: #eef2f6;
}

.auth-shell--register {
    justify-content: flex-start;
    padding: 0;
    min-height: 100vh;
}

.auth-shell--register .auth-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.auth-register {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 56px;
}

.auth-card--register {
    width: 100%;
    max-width: 440px;
    padding: 36px 32px 28px;
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08), 0 8px 28px rgba(60, 64, 67, 0.08);
    border: 1px solid rgba(218, 220, 224, 0.7);
}

.auth-card__header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-card__header .auth-card__icon {
    margin: 0 auto 20px;
}

.auth-card__header h2 {
    font-size: 1.375rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.auth-card__header .subtitle {
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.register-perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0;
}

.register-perks li {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 999px;
}

.register-form .form-group {
    margin-bottom: 18px;
}

.register-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.register-form__row .form-group {
    margin-bottom: 18px;
}

/* ── Password field (register) ── */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 44px;
}

.password-field__toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.password-field__toggle:hover {
    color: var(--text);
    background: var(--bg);
}

.password-field__toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.password-field__icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.password-field__toggle[aria-pressed="true"] .password-field__icon--show {
    display: none;
}

.password-field__toggle[aria-pressed="true"] .password-field__icon--hide {
    display: block;
}

.password-field__icon--hide {
    display: none;
}

.password-strength {
    margin-top: 8px;
}

.password-strength__track {
    height: 4px;
    background: var(--border-light);
    border-radius: 999px;
    overflow: hidden;
}

.password-strength__fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.password-strength__fill[data-level="1"] {
    width: 33%;
    background: var(--danger);
}

.password-strength__fill[data-level="2"] {
    width: 66%;
    background: var(--warning);
}

.password-strength__fill[data-level="3"] {
    width: 100%;
    background: var(--success);
}

.password-strength__label {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.password-strength__label[data-level="1"] {
    color: var(--danger);
}

.password-strength__label[data-level="2"] {
    color: #b06000;
}

.password-strength__label[data-level="3"] {
    color: var(--success);
}

@media (max-width: 520px) {
    .register-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-register {
        padding: 24px 16px 40px;
    }

    .auth-card--register {
        padding: 28px 20px 24px;
        border-radius: var(--radius-lg);
    }
}

@media (min-width: 1024px) {
    .auth-register {
        padding: 48px 24px 64px;
        align-items: center;
    }

    .auth-card--register {
        max-width: 460px;
        padding: 40px 36px 32px;
    }
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.auth-topbar__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 1.0625rem;
    font-weight: 500;
}

.auth-topbar__action {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: background 0.15s, border-color 0.15s;
}

.auth-topbar__action:hover {
    background: var(--primary-light);
    border-color: transparent;
}

.auth-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    flex: 1;
    min-height: 0;
}

.auth-brand {
    background:
        radial-gradient(ellipse 80% 60% at 90% 10%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(155deg, #1967d2 0%, #1a73e8 40%, #174ea6 100%);
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.auth-brand__content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-brand__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.auth-brand h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.auth-brand p {
    font-size: 1.0625rem;
    opacity: 0.92;
    line-height: 1.65;
    margin-bottom: 8px;
}

.auth-brand__list {
    list-style: none;
    margin-top: 36px;
}

.auth-brand__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    font-size: 0.9375rem;
    opacity: 0.95;
}

.auth-brand__list li::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    flex-shrink: 0;
}

.auth-brand__visual {
    position: absolute;
    bottom: 48px;
    right: 48px;
    width: 200px;
    height: 200px;
    opacity: 0.12;
    pointer-events: none;
}

.auth-brand__visual svg {
    width: 100%;
    height: 100%;
    fill: #fff;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #f0f4f9;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08), 0 8px 24px rgba(60, 64, 67, 0.1);
    border: 1px solid rgba(218, 220, 224, 0.6);
    padding: 44px 40px 36px;
    width: 100%;
    max-width: 420px;
}

.auth-card--register {
    max-width: 460px;
}

.auth-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-card__icon .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.auth-card__icon .logo-mark svg {
    width: 18px;
    height: 18px;
}

.auth-card h2 {
    font-size: 1.625rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--text);
}

.auth-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-section-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin: 8px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-group input,
.auth-card .form-group select {
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 0.9375rem;
}

.auth-card .btn-primary {
    margin-top: 8px;
    padding: 13px 24px;
    font-size: 0.9375rem;
}

.auth-card .form-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.auth-form-panel .form-card {
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: none;
    background: transparent;
}

.auth-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0 20px;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Dashboard ── */
.dashboard-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: 40px 36px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.dashboard-card h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.dashboard-card > p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.9375rem;
}

.dashboard-card .btn-primary {
    padding: 14px 36px;
    font-size: 0.9375rem;
}

.dashboard-meta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.dashboard-meta__item {
    text-align: center;
}

.dashboard-meta__label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.dashboard-meta__value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.user-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* ── Tables (unchanged functionality) ── */
.table-wrapper {
    overflow-x: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

th {
    background: var(--bg);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-active {
    background: #e6f4ea;
    color: var(--success);
}

.badge-inactive {
    background: #fce8e6;
    color: var(--danger);
}

/* ── Footer ── */
.footer {
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8125rem;
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}

.footer--minimal {
    background: transparent;
    border-top: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-modern__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-modern__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-modern__actions {
        justify-content: center;
    }

    .hero-modern__visual {
        order: -1;
    }

    .hero-mockup {
        max-width: 340px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 40px 28px 36px;
    }

    .auth-brand__list {
        display: none;
    }

    .auth-brand__visual {
        display: none;
    }

    .auth-form-panel {
        padding: 32px 20px 48px;
    }

    .auth-card {
        padding: 32px 24px 28px;
        border-radius: var(--radius-lg);
    }

    .auth-topbar {
        padding: 14px 20px;
    }
}

@media (max-width: 600px) {
    .nav-links a:not(.btn) {
        display: none;
    }

    .nav-user {
        display: none;
    }

    .form-card {
        padding: 28px 20px;
    }

    .hero-modern {
        padding: 48px 0 56px;
    }

    .cta-band {
        padding: 40px 0;
    }
}
