/* ============================================================
   Auth Pages — Professional Wave-style Layout
   ============================================================ */


/* ── Wrapper ─────────────────────────────────────────────── */
body.hero-present {
    color-scheme: light;
    color: #333;
    overflow: hidden;
}

[data-theme="dark"] body.hero-present,
body.hero-present[data-theme="dark"] {
    color-scheme: dark;
    color: var(--dark-text-primary, #f0f2f5);
}

.auth-wrapper {
    display: flex;
    min-height: 100dvh;
    width: 100%;
}


/* ── Left Panel ──────────────────────────────────────────── */
.auth-panel-left {
    position: relative;
    width: 38%;
    max-width: 520px;
    flex-shrink: 0;
    flex-direction: column;
    color: #fff;
    padding: clamp(2rem, 3.5vw, 3.25rem);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #062a47 0%, #0a4f7a 50%, #0c7e98 100%);
}

.auth-panel-left > * {
    position: relative;
    z-index: 3;
}

/* Decorative color blobs disabled — keep the panel a clean gradient */
.auth-glow {
    display: none !important;
}

/* ── Top Bar (logo + brand) ──────────────────────────────── */
.auth-panel-left__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
    animation: auth-fade-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 0 0 rgba(34, 211, 238, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    animation: auth-brand-pulse 4s ease-in-out 0.4s infinite;
}

.auth-brand-mark:hover {
    transform: translateY(-2px) rotate(-3deg);
}

@keyframes auth-brand-pulse {
    0%, 100% {
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.28),
            0 0 0 0 rgba(34, 211, 238, 0);
    }
    50% {
        box-shadow:
            0 4px 18px rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.32),
            0 0 28px 2px rgba(34, 211, 238, 0.22);
    }
}

.auth-top-logo {
    display: block;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.auth-top-brand {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
}

.auth-top-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}


/* ── Hero Content (center of left panel) ─────────────────── */
.auth-panel-left__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 460px;
}

.auth-hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.4rem 0.875rem 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(120deg, rgba(34, 211, 238, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 1.25rem;
    overflow: hidden;
    animation: auth-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Shimmer sweep across the badge */
.auth-hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 80%
    );
    transform: skewX(-18deg);
    animation: auth-badge-shimmer 4.5s ease-in-out 1s infinite;
}

@keyframes auth-badge-shimmer {
    0%   { left: -60%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}

.auth-hero-badge__dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: auth-pulse-dot 2s ease-out infinite;
}

@keyframes auth-pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.auth-hero-subtitle {
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    animation: auth-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.auth-hero-heading {
    font-size: clamp(2.25rem, 4.4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
    color: #fff;
    margin-bottom: 1.25rem;
    animation: auth-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.auth-hero-heading__accent {
    background: linear-gradient(
        100deg,
        #67e8f9 0%,
        #22d3ee 25%,
        #38bdf8 45%,
        #6366f1 65%,
        #22d3ee 85%,
        #67e8f9 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 32px rgba(103, 232, 249, 0.25));
    animation: auth-gradient-flow 7s linear infinite;
}

@keyframes auth-gradient-flow {
    from { background-position: 0% 50%; }
    to   { background-position: 220% 50%; }
}

.auth-hero-text {
    font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 380px;
    margin-bottom: 1.75rem;
    animation: auth-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}


/* ── Footer trust strip (with live equalizer) ────────────── */
.auth-panel-left__footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    animation: auth-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

.auth-trust-row {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.auth-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.auth-trust i {
    color: #67e8f9;
    font-size: 0.8125rem;
}

.auth-trust + .auth-trust {
    position: relative;
    padding-left: 0.875rem;
}

.auth-trust + .auth-trust::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%);
}

.auth-eq {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(103, 232, 249, 0.85);
}

.auth-eq__bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.auth-eq__bar {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(to top, #22d3ee, #67e8f9);
    transform-origin: bottom center;
    animation: auth-eq-pulse 1.4s ease-in-out infinite;
}

.auth-eq__bar:nth-child(1) { animation-delay: 0s;    height: 55%; }
.auth-eq__bar:nth-child(2) { animation-delay: 0.15s; height: 85%; }
.auth-eq__bar:nth-child(3) { animation-delay: 0.3s;  height: 40%; }
.auth-eq__bar:nth-child(4) { animation-delay: 0.45s; height: 75%; }
.auth-eq__bar:nth-child(5) { animation-delay: 0.6s;  height: 50%; }

@keyframes auth-eq-pulse {
    0%, 100% { transform: scaleY(0.35); }
    50%      { transform: scaleY(1); }
}


@keyframes auth-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes auth-fade-down {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── Right Panel ─────────────────────────────────────────── */
.auth-panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    position: relative;
    overflow-y: auto;
}


/* ── Mobile Header ───────────────────────────────────────── */
.auth-mobile-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-mobile-header img {
    border-radius: 8px;
}

.auth-mobile-brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-heading-color, #002D46);
    letter-spacing: -0.01em;
}


/* ── Form Container ──────────────────────────────────────── */
.auth-form-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    animation: auth-form-enter 0.5s ease-out both;
}

@keyframes auth-form-enter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── Form Header ─────────────────────────────────────────── */
.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header .auth-page-icon {
    margin-bottom: 1rem;
}


/* ── Right Panel Footer ──────────────────────────────────── */
.auth-panel-right__footer {
    position: relative;
    z-index: 1;
    margin-top: 2.5rem;
    font-size: 0.6875rem;
    color: #c4c9d4;
    letter-spacing: 0.01em;
}


/* ── Headings ────────────────────────────────────────────── */
.auth-heading {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--bs-heading-color, #1e2022);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.375rem;
}

.auth-subheading {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 0;
    line-height: 1.6;
}


/* ── Alert ───────────────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.auth-alert i {
    margin-top: 0.125rem;
    flex-shrink: 0;
    font-size: 1rem;
}

.auth-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert--error i { color: #dc2626; }

.auth-alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}


/* ── Page Icon ───────────────────────────────────────────── */
.auth-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(0, 105, 166, 0.08) 0%, rgba(0, 105, 166, 0.04) 100%);
    color: var(--auth-primary, #0069A6);
    font-size: 1.375rem;
    border: 1px solid rgba(0, 105, 166, 0.08);
}


/* ── Form Labels ─────────────────────────────────────────── */
.auth-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}


/* ── Form Fields ─────────────────────────────────────────── */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
}


/* ── Input Box (modern bordered style) ───────────────────── */
.auth-input-box {
    display: flex;
    align-items: center;
    position: relative;
    background: #f8fafc;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.auth-input-box:hover {
    border-color: #d1d5db;
    background: #f1f5f9;
}

.auth-input-box:focus-within {
    border-color: var(--auth-primary, #0069A6);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 105, 166, 0.08);
}

.auth-input-box--error {
    border-color: #fca5a5;
    background: #fef2f2;
}

.auth-input-box--error:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.auth-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    flex-shrink: 0;
    color: #b0b7c3;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.auth-input-box:focus-within .auth-input-icon {
    color: var(--auth-primary, #0069A6);
}

.auth-input-box--error .auth-input-icon {
    color: #f87171;
}

.auth-input-box .form-control {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.8125rem 0.75rem 0.8125rem 0;
    font-size: 0.9375rem;
    color: #111827;
    flex: 1;
    min-width: 0;
    font-weight: 500;
}

.auth-input-box .form-control:focus {
    box-shadow: none;
    outline: none;
}

.auth-input-box .form-control::placeholder {
    color: #b0b7c3;
    font-weight: 400;
}

/* Native select inside the auth input box (for clinic_size etc.) */
.auth-input-box .form-select {
    border: none;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    padding: 0.8125rem 2.25rem 0.8125rem 0;
    font-size: 0.9375rem;
    color: #111827;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.auth-input-box .form-select:focus {
    box-shadow: none;
    outline: none;
}

/* Multiline (textarea) variant */
.auth-input-box--multiline {
    align-items: stretch;
}

.auth-input-box--multiline .auth-input-icon {
    align-items: flex-start;
    padding-top: 0.875rem;
}

.auth-input-box--multiline textarea.form-control {
    resize: vertical;
    min-height: 90px;
    padding-top: 0.8125rem;
    padding-bottom: 0.8125rem;
    padding-right: 0.875rem;
    line-height: 1.5;
}


/* ── Wide form container (contact / demo lead pages) ─────── */
.auth-form-container--wide {
    max-width: 620px;
}

.auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-row > .auth-field {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .auth-row {
        grid-template-columns: 1fr;
    }
}


/* ── Legacy accent inputs (keep for other auth pages) ────── */
.auth-input-accent {
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 2px solid #e5e7eb;
    transition: border-color 0.25s ease;
}

.auth-input-accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--auth-primary, #0069A6);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input-accent:focus-within::after {
    width: 100%;
}

.auth-input-accent .form-control {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: #111827;
    flex: 1;
    min-width: 0;
}

.auth-input-accent .form-control:focus {
    box-shadow: none;
    outline: none;
}

.auth-input-accent .form-control::placeholder {
    color: #b0b7c3;
    font-weight: 400;
}

.auth-input-accent--error {
    border-bottom-color: #fca5a5;
}

.auth-input-accent--error::after {
    background: #ef4444;
}


/* ── Password Toggle ─────────────────────────────────────── */
.auth-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #b0b7c3;
    font-size: 1rem;
    padding: 0;
    transition: color 0.15s ease;
    border-radius: 0 0.75rem 0.75rem 0;
}

.auth-password-toggle:hover {
    color: #6b7280;
}

.auth-input-box:focus-within .auth-password-toggle {
    color: #6b7280;
}


/* ── Options Row (remember me + forgot password) ─────────── */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    margin-top: 0.25rem;
}

.auth-link-subtle {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-primary, #0069A6);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link-subtle:hover {
    color: var(--auth-primary-dark, #005A8F);
    text-decoration: underline;
}


/* ── Primary Button (filled gradient) ────────────────────── */
.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #062a47 0%, #0a4f7a 50%, #0c7e98 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition:
        box-shadow 0.25s ease,
        transform 0.15s ease,
        filter 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 105, 166, 0.2);
}

.auth-btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(0, 105, 166, 0.35);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.auth-btn-primary:active:not(:disabled) {
    transform: translateY(0.5px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.auth-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-btn-text,
.auth-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


/* ── Password Requirements ───────────────────────────────── */
.auth-password-rules {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
}

.auth-password-rules strong {
    color: #374151;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-password-rules ul {
    margin: 0.375rem 0 0;
    padding-left: 1.125rem;
}

.auth-password-rules li {
    margin-bottom: 0.125rem;
    line-height: 1.5;
}


/* ── Checkbox ────────────────────────────────────────────── */
body.hero-present .form-check-input {
    width: 1.0625rem;
    height: 1.0625rem;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.hero-present .form-check-input:checked {
    background-color: var(--auth-primary, #0069A6);
    border-color: var(--auth-primary, #0069A6);
}

body.hero-present .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 105, 166, 0.12);
    border-color: var(--auth-primary, #0069A6);
}

body.hero-present .form-check-label {
    font-size: 0.8125rem;
    color: #6b7280;
    cursor: pointer;
    margin-left: 0.125rem;
    font-weight: 500;
}


/* ── Legacy compat for old templates using .input-group ──── */
body.hero-present .input-group {
    border-bottom: 2px solid #e5e7eb;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    transition: border-color 0.25s ease;
}

body.hero-present .input-group:focus-within {
    border-bottom-color: var(--auth-primary, #0069A6);
    box-shadow: none;
}

body.hero-present .input-group-text {
    background: transparent;
    border: none;
    color: #b0b7c3;
    padding-left: 0;
    padding-right: 0.5rem;
    font-size: 0.9375rem;
}

body.hero-present .input-group:focus-within .input-group-text {
    color: var(--auth-primary, #0069A6);
}

body.hero-present .input-group .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

body.hero-present .text-heading {
    color: var(--auth-primary, #0069A6);
}

body.hero-present .btn-primary {
    background: linear-gradient(135deg, #0080C8 0%, #0069A6 100%);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.875rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 105, 166, 0.2);
    transition: box-shadow 0.25s ease, transform 0.15s ease, filter 0.25s ease;
}

body.hero-present .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 105, 166, 0.35);
    transform: translateY(-1px);
    filter: brightness(1.05);
}


/* ── Misc ────────────────────────────────────────────────── */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    transform-origin: center;
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-panel-right {
        padding: 1.5rem;
        justify-content: flex-start;
        padding-top: 0;
    }

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

    .auth-panel-right__footer {
        margin-top: auto;
        padding-top: 2rem;
    }
}

@media (min-width: 768px) {
    .auth-mobile-header {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .auth-panel-left {
        width: 34%;
        padding: 2rem;
    }

    .auth-hero-heading {
        font-size: 2.125rem;
    }

    .auth-hero-features {
        gap: 0.625rem;
    }

    .auth-hero-feature {
        font-size: 0.8125rem;
    }
}

@media (min-width: 1400px) {
    .auth-panel-left {
        width: 40%;
        max-width: 580px;
    }
}


/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .auth-panel-left::before,
    .auth-glow,
    .auth-panel-left__top,
    .auth-brand-mark,
    .auth-hero-badge,
    .auth-hero-badge::after,
    .auth-hero-badge__dot,
    .auth-hero-subtitle,
    .auth-hero-heading,
    .auth-hero-heading__accent,
    .auth-hero-text,
    .auth-panel-left__footer,
    .auth-eq__bar,
    .auth-form-container {
        animation: none !important;
    }
}


/* ============================================================
   Dark Mode — Auth Pages
   ============================================================ */
[data-theme="dark"] .auth-panel-right {
    background: var(--dark-bg-body, #0f1117);
}

/* Headings & text */
[data-theme="dark"] .auth-heading {
    color: var(--dark-text-primary, #f0f2f5);
}
[data-theme="dark"] .auth-subheading {
    color: var(--dark-text-secondary, #9ba3b5);
}

/* Labels */
[data-theme="dark"] .auth-label {
    color: var(--dark-text-secondary, #9ba3b5);
}

/* Input box */
[data-theme="dark"] .auth-input-box {
    background: var(--dark-bg-elevated, #222633);
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .auth-input-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .auth-input-box:focus-within {
    background: var(--dark-bg-elevated, #222633);
    border-color: var(--auth-primary, #0069A6);
    box-shadow: 0 0 0 3px rgba(0, 105, 166, 0.2);
}
[data-theme="dark"] .auth-input-box--error {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.3);
}
[data-theme="dark"] .auth-input-box--error:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Input icon */
[data-theme="dark"] .auth-input-icon {
    color: var(--dark-text-muted, #6b7280);
}
[data-theme="dark"] .auth-input-box:focus-within .auth-input-icon {
    color: #6ea8fe;
}

/* Input text */
[data-theme="dark"] .auth-input-box .form-control {
    color: var(--dark-text-primary, #f0f2f5);
    -webkit-text-fill-color: var(--dark-text-primary, #f0f2f5);
}
[data-theme="dark"] .auth-input-box .form-control::placeholder {
    color: var(--dark-text-muted, #6b7280);
    -webkit-text-fill-color: var(--dark-text-muted, #6b7280);
}

/* Autofill override for dark mode */
[data-theme="dark"] .auth-input-box .form-control:-webkit-autofill,
[data-theme="dark"] .auth-input-box .form-control:-webkit-autofill:hover,
[data-theme="dark"] .auth-input-box .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--dark-bg-elevated, #222633) inset !important;
    -webkit-text-fill-color: var(--dark-text-primary, #f0f2f5) !important;
    caret-color: var(--dark-text-primary, #f0f2f5);
    transition: background-color 5000s ease-in-out 0s;
}

/* Password toggle */
[data-theme="dark"] .auth-password-toggle {
    color: var(--dark-text-muted, #6b7280);
}
[data-theme="dark"] .auth-password-toggle:hover,
[data-theme="dark"] .auth-input-box:focus-within .auth-password-toggle {
    color: var(--dark-text-secondary, #9ba3b5);
}

/* Alerts */
[data-theme="dark"] .auth-alert--error {
    background: rgba(220, 53, 69, 0.1);
    color: #f87171;
    border-color: rgba(220, 53, 69, 0.25);
}
[data-theme="dark"] .auth-alert--error i { color: #f87171; }
[data-theme="dark"] .auth-alert--success {
    background: rgba(25, 135, 84, 0.1);
    color: #75b798;
    border-color: rgba(25, 135, 84, 0.25);
}

/* Page icon */
[data-theme="dark"] .auth-page-icon {
    background: linear-gradient(135deg, rgba(0, 105, 166, 0.15) 0%, rgba(0, 105, 166, 0.08) 100%);
    border-color: rgba(0, 105, 166, 0.15);
    color: #6ea8fe;
}

/* Options row */
[data-theme="dark"] .form-check-label {
    color: var(--dark-text-secondary, #9ba3b5);
}
[data-theme="dark"] .auth-link-subtle {
    color: #6ea8fe;
}
[data-theme="dark"] .auth-link-subtle:hover {
    color: #9ec5fe;
}

/* Field error */
[data-theme="dark"] .auth-field-error {
    color: #f87171;
}

/* Footer */
[data-theme="dark"] .auth-panel-right__footer {
    color: var(--dark-text-muted, #6b7280);
}

/* Mobile header */
[data-theme="dark"] .auth-mobile-brand {
    color: var(--dark-text-primary, #f0f2f5);
}

/* Legacy accent inputs */
[data-theme="dark"] .auth-input-accent {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-text-primary, #f0f2f5);
}
[data-theme="dark"] .auth-input-accent .form-control {
    color: var(--dark-text-primary, #f0f2f5);
    -webkit-text-fill-color: var(--dark-text-primary, #f0f2f5);
}
[data-theme="dark"] .auth-input-accent .form-control::placeholder {
    color: var(--dark-text-muted, #6b7280);
    -webkit-text-fill-color: var(--dark-text-muted, #6b7280);
}
[data-theme="dark"] .auth-input-accent:focus-within {
    border-bottom-color: var(--auth-primary, #0069A6);
}
[data-theme="dark"] .auth-input-accent--error {
    border-bottom-color: rgba(220, 53, 69, 0.4);
}
[data-theme="dark"] .auth-input-accent .form-control:-webkit-autofill,
[data-theme="dark"] .auth-input-accent .form-control:-webkit-autofill:hover,
[data-theme="dark"] .auth-input-accent .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--dark-bg-body, #0f1117) inset !important;
    -webkit-text-fill-color: var(--dark-text-primary, #f0f2f5) !important;
    caret-color: var(--dark-text-primary, #f0f2f5);
}

/* Password toggle in accent inputs */
[data-theme="dark"] .auth-input-accent .auth-password-toggle {
    color: var(--dark-text-muted, #6b7280);
}
[data-theme="dark"] .auth-input-accent .auth-password-toggle:hover {
    color: var(--dark-text-secondary, #9ba3b5);
}

/* Password rules box */
[data-theme="dark"] .auth-password-rules {
    background: var(--dark-bg-elevated, #222633);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--dark-text-secondary, #9ba3b5);
}
[data-theme="dark"] .auth-password-rules strong {
    color: var(--dark-text-primary, #f0f2f5);
}

/* Checkbox */
[data-theme="dark"] body.hero-present .form-check-input {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}
