/**
 * Auth Pages — Centered brand card (Getir-style)
 * Tam sayfa brand gradient arka plan + ortada floating beyaz kart.
 *
 * @package BusinessList
 * @version 2.0.0
 */

/* ================================================
   Design Tokens
   ================================================ */
:root {
    --auth-primary:       #dc2626;
    --auth-primary-dark:  #b91c1c;
    --auth-primary-darker:#991b1b;
    --auth-primary-soft:  rgba(220, 38, 38, .12);
    --auth-primary-ring:  rgba(220, 38, 38, .28);
    --auth-ink:           #0f172a;
    --auth-ink-2:         #1e293b;
    --auth-ink-muted:     #475569;
    --auth-ink-faint:     #64748b;
    --auth-slate-50:      #f8fafc;
    --auth-slate-100:     #f1f5f9;
    --auth-slate-200:     #e2e8f0;
    --auth-slate-300:     #cbd5e1;
    --auth-slate-400:     #94a3b8;
    --auth-success:       #16a34a;
    --auth-success-soft:  #f0fdf4;
    --auth-success-line:  #bbf7d0;
    --auth-danger:        #dc2626;
    --auth-danger-soft:   #fef2f2;
    --auth-danger-line:   #fecaca;
    --auth-warn:          #f59e0b;
    --auth-warn-soft:     #fffbeb;
    --auth-warn-line:     #fde68a;
    --auth-radius:        12px;
    --auth-radius-lg:     18px;
    --auth-radius-xl:     24px;
    --auth-shadow-card:   0 2px 4px rgba(15,23,42,.04), 0 12px 28px -8px rgba(15,23,42,.12), 0 30px 80px -30px rgba(220,38,38,.25);
    --auth-ring:          0 0 0 3px var(--auth-primary-soft);
    --auth-ring-dark:     0 0 0 3px rgba(15,23,42,.08);
    --auth-transition:    .18s ease;
}

/* ================================================
   Full-page brand backdrop
   ================================================ */
body.page-template-template-uye-ol,
body.page-template-template-uye-giris {
    background: #f0f2f5;
    background-attachment: fixed;
    overflow-x: clip !important;
    overflow-y: visible !important;
}
/* Sticky support — tema genelinde html/body `overflow-x: hidden` tanımlı,
   bu sticky'yi kırıyor. Sadece bu iki sayfada html'i clip'e çeviriyoruz
   (clip yatay kaymayı engeller ama scroll container oluşturmaz). */
html:has(body.page-template-template-uye-ol),
html:has(body.page-template-template-uye-giris) {
    overflow-x: clip !important;
    overflow-y: visible !important;
}
/* Ek olarak tüm ara wrapper'ları da zorunlu serbest bırak */
body.page-template-template-uye-ol .main,
body.page-template-template-uye-ol main,
body.page-template-template-uye-ol .site-main,
body.page-template-template-uye-ol .site-content,
body.page-template-template-uye-ol #content,
body.page-template-template-uye-ol #primary,
body.page-template-template-uye-ol #page,
body.page-template-template-uye-giris .main,
body.page-template-template-uye-giris main,
body.page-template-template-uye-giris .site-main,
body.page-template-template-uye-giris .site-content,
body.page-template-template-uye-giris #content,
body.page-template-template-uye-giris #primary,
body.page-template-template-uye-giris #page { overflow: visible !important; }

.modern-login-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: stretch;
    justify-content: center;
    justify-items: center;
    min-height: calc(100vh - 80px);
    padding: 0 20px 40px;
    max-width: 1040px;
    margin: 0 auto;
    border-radius: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Left brand block — sticky while right card scrolls */
.auth-hero {
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    max-width: 480px;
    padding: 20px 0 0 0;
    margin: 0;
    justify-self: start;
    width: 100%;
    height: fit-content;
    align-self: start;
}
.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--auth-primary-darker);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 18px;
    border: 1px solid rgba(220,38,38,.15);
}
.auth-hero-badge i { font-size: 10px; }
.auth-hero-headline {
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 0;
    color: var(--auth-ink);
}
.auth-hero-headline .hl-accent {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-darker) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-hero-headline .hl-underline {
    position: relative;
    display: inline-block;
}
.auth-hero-headline .hl-underline::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 2px;
    height: 10px;
    background: rgba(220, 38, 38, .18);
    border-radius: 2px;
    z-index: -1;
}
.auth-hero-tagline {
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--auth-ink-muted);
    margin: 18px 0 0;
    max-width: 440px;
}
.auth-hero-perks {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-hero-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-ink);
}
.auth-hero-perks li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--auth-primary-soft);
    color: var(--auth-primary);
    font-size: 10px;
    flex-shrink: 0;
}

/* ================================================
   Centered Card (the form)
   ================================================ */
.login-form-panel,
.register-form-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin-top: 20px;
    padding: 28px 28px 24px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.10), 0 8px 20px rgba(0,0,0,.08);
    border: 0;
}

.form-container {
    width: 100%;
}

/* Brand mark above form — only visible on mobile (hero area is hidden then) */
.auth-brand {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    text-decoration: none;
}
.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-darker) 100%);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 20px -8px rgba(220,38,38,.55);
}
.auth-brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--auth-primary);
    letter-spacing: -0.02em;
}

.form-header { margin-bottom: 24px; text-align: center; }

.form-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--auth-ink);
    margin: 0 0 6px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.form-subtitle {
    font-size: 14.5px;
    color: var(--auth-ink-faint);
    margin: 0;
    line-height: 1.5;
}

/* Hide legacy brand panel completely */
.login-info-panel,
.register-hero {
    display: none !important;
}

/* ================================================
   Form Elements
   ================================================ */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: 6px;
}

.form-input-wrapper { position: relative; }

.form-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--auth-slate-200);
    border-radius: var(--auth-radius);
    font-size: 15px;
    color: var(--auth-ink);
    background: var(--auth-slate-50);
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition), background-color var(--auth-transition);
    box-sizing: border-box;
    font-family: inherit;
}
.form-input::placeholder { color: var(--auth-slate-400); }
.form-input:hover { border-color: var(--auth-slate-300); background: #fff; }
.form-input:focus,
.form-input:focus-visible {
    outline: none;
    background: #fff;
    border-color: var(--auth-primary);
    box-shadow: var(--auth-ring);
}
.form-input.is-invalid { border-color: var(--auth-danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, .08); }
.form-input.is-valid   { border-color: var(--auth-success); }

.form-input.no-icon { padding-left: 16px; }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-slate-400);
    font-size: 14px;
    pointer-events: none;
    transition: color var(--auth-transition);
}
.form-input:focus ~ .input-icon,
.form-input-wrapper:focus-within .input-icon { color: var(--auth-primary); }

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-slate-400);
    cursor: pointer;
    font-size: 14px;
    background: none;
    border: 0;
    padding: 6px 8px;
    border-radius: 6px;
    transition: color var(--auth-transition), background-color var(--auth-transition);
}
.password-toggle:hover { color: var(--auth-ink-muted); background: var(--auth-slate-100); }
.password-toggle:focus-visible { outline: none; box-shadow: var(--auth-ring); }

.caps-lock-warning {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 5px 10px;
    background: var(--auth-warn-soft);
    border: 1px solid var(--auth-warn-line);
    color: #92400e;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}
.caps-lock-warning.is-visible { display: inline-flex; }
.caps-lock-warning i { color: var(--auth-warn); }

.field-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: var(--auth-danger);
    font-weight: 500;
}
.field-error.is-visible { display: block; }

/* ================================================
   Form Options
   ================================================ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
    gap: 8px;
    flex-wrap: wrap;
}
.remember-me { display: flex; align-items: center; gap: 8px; color: var(--auth-ink-faint); }
.remember-me input { accent-color: var(--auth-primary); width: 15px; height: 15px; cursor: pointer; }
.remember-me label { cursor: pointer; }
.forgot-password { color: var(--auth-primary); text-decoration: none; font-weight: 600; transition: color var(--auth-transition); }
.forgot-password:hover { color: var(--auth-primary-dark); text-decoration: underline; }
.forgot-password:focus-visible { outline: none; box-shadow: var(--auth-ring); border-radius: 4px; }

/* ================================================
   Primary CTA — Getir-style bold red
   ================================================ */
.login-button,
.register-button {
    position: relative;
    width: 100%;
    padding: 15px 18px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--auth-radius);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: transform var(--auth-transition), box-shadow var(--auth-transition), filter var(--auth-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 6px 18px -6px rgba(220, 38, 38, .55), 0 0 0 0 var(--auth-primary-ring);
}
.login-button:hover,
.register-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px rgba(220, 38, 38, .65);
    filter: brightness(1.03);
}
.login-button:active,
.register-button:active { transform: translateY(0); filter: brightness(.97); }
.login-button:focus-visible,
.register-button:focus-visible { outline: none; box-shadow: 0 6px 18px -6px rgba(220, 38, 38, .55), 0 0 0 4px var(--auth-primary-ring); }
.login-button:disabled,
.register-button:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.login-button.is-loading,
.register-button.is-loading { color: transparent !important; pointer-events: none; }
.login-button.is-loading::after,
.register-button.is-loading::after {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* ================================================
   Terms
   ================================================ */
.terms-group { margin-bottom: 20px; }
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: var(--auth-ink-faint);
    line-height: 1.5;
}
.terms-checkbox input { accent-color: var(--auth-primary); margin-top: 2px; width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.terms-checkbox label { cursor: pointer; }
.terms-checkbox a { color: var(--auth-ink); font-weight: 600; text-decoration: none; }
.terms-checkbox a:hover { color: var(--auth-primary); text-decoration: underline; }

/* ================================================
   Password Strength
   ================================================ */
.password-strength { margin-top: 8px; }
.password-strength-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.strength-text { font-size: 12px; color: var(--auth-ink-faint); font-weight: 500; }
.strength-label { font-size: 12px; font-weight: 600; color: var(--auth-slate-400); transition: color var(--auth-transition); }
.strength-bar {
    height: 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}
.strength-seg { background: var(--auth-slate-200); border-radius: 2px; transition: background .3s ease; }

.password-strength[data-strength="1"] .strength-seg:nth-child(-n+1) { background: var(--auth-danger); }
.password-strength[data-strength="1"] .strength-label { color: var(--auth-danger); }
.password-strength[data-strength="2"] .strength-seg:nth-child(-n+2) { background: var(--auth-warn); }
.password-strength[data-strength="2"] .strength-label { color: var(--auth-warn); }
.password-strength[data-strength="3"] .strength-seg:nth-child(-n+3) { background: #2563eb; }
.password-strength[data-strength="3"] .strength-label { color: #2563eb; }
.password-strength[data-strength="4"] .strength-seg { background: var(--auth-success); }
.password-strength[data-strength="4"] .strength-label { color: var(--auth-success); }

.password-match { margin-top: 6px; font-size: 12px; font-weight: 500; display: none; align-items: center; gap: 5px; }
.password-match.is-visible { display: inline-flex; }
.password-match.is-ok { color: var(--auth-success); }
.password-match.is-fail { color: var(--auth-slate-400); }

/* ================================================
   Auth Footer
   ================================================ */
.auth-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-slate-100);
    font-size: 14px;
    color: var(--auth-ink-faint);
}
.auth-footer a { color: var(--auth-primary); font-weight: 700; text-decoration: none; transition: color var(--auth-transition); }
.auth-footer a:hover { color: var(--auth-primary-dark); text-decoration: underline; }

/* Trust strip below card — FB style, subtle gray */
.auth-trust {
    grid-column: 1 / -1;
    margin-top: 18px;
    text-align: center;
    color: #65676b;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; }
.auth-trust i { color: var(--auth-primary); }

/* ================================================
   Messages
   ================================================ */
.error-message,
.success-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--auth-radius);
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    border: 1px solid transparent;
}
.error-message[hidden],
.success-message[hidden],
.error-message:empty,
.success-message:empty { display: none !important; }
.error-message { background: var(--auth-danger-soft); border-color: var(--auth-danger-line); color: #991b1b; }
.error-message::before {
    content: "\f071"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    color: var(--auth-danger); flex-shrink: 0; margin-top: 1px;
}
.success-message { background: var(--auth-success-soft); border-color: var(--auth-success-line); color: #166534; }
.success-message::before {
    content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    color: var(--auth-success); flex-shrink: 0; margin-top: 1px;
}

/* ================================================
   Login Tabs
   ================================================ */
.login-tabs {
    display: flex;
    gap: 2px;
    background: var(--auth-slate-100);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}
.login-tab {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--auth-ink-faint);
    cursor: pointer;
    transition: background var(--auth-transition), color var(--auth-transition), box-shadow var(--auth-transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.login-tab:hover { color: var(--auth-ink); }
.login-tab:focus-visible { outline: none; box-shadow: var(--auth-ring); }
.login-tab.is-active,
.login-tab[aria-selected="true"] {
    background: #ffffff;
    color: var(--auth-primary);
    box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px rgba(15,23,42,.04);
}
.login-pane[hidden] { display: none; }

/* ================================================
   OTP input shared styles
   ================================================ */
.login-otp-input {
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    letter-spacing: .5em;
    font-feature-settings: "tnum";
}
.login-otp-input::placeholder { letter-spacing: .35em; }

.form-hint {
    font-size: .82rem;
    color: var(--auth-ink-faint);
    margin: 8px 0 0;
    line-height: 1.5;
}
.form-hint a { color: var(--auth-primary); font-weight: 600; text-decoration: none; }
.form-hint a:hover { text-decoration: underline; }
.form-hint a.is-disabled { color: var(--auth-slate-400); pointer-events: none; cursor: not-allowed; }
[data-phone-timer] { color: var(--auth-slate-400); margin-left: 4px; }

/* ================================================
   Register Wizard
   ================================================ */
.reg-stepper { list-style: none; display: flex; gap: 0; margin: 0 0 22px; padding: 0; }
.reg-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: var(--auth-slate-400);
    position: relative;
    transition: color var(--auth-transition);
}
.reg-step + .reg-step::before {
    content: ""; position: absolute; left: -10px; top: 50%;
    width: 18px; height: 2px; background: var(--auth-slate-200);
    transition: background var(--auth-transition);
}
.reg-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--auth-slate-100); color: var(--auth-slate-400);
    font-weight: 700; font-size: .85rem;
    transition: background var(--auth-transition), color var(--auth-transition), box-shadow var(--auth-transition);
    flex-shrink: 0;
}
.reg-step-num svg { width: 14px; height: 14px; display: none; }
.reg-step.is-active { color: var(--auth-ink); }
.reg-step.is-active .reg-step-num {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    color: #fff; box-shadow: 0 0 0 4px var(--auth-primary-soft);
}
.reg-step.is-done { color: var(--auth-ink); }
.reg-step.is-done .reg-step-num { background: var(--auth-ink); color: #fff; }
.reg-step.is-done .reg-step-num span { display: none; }
.reg-step.is-done .reg-step-num svg { display: block; }
.reg-step.is-done + .reg-step::before { background: var(--auth-primary); }
.reg-step-label { font-weight: 500; }

.reg-pane { display: none; animation: reg-fade-in .25s ease; }
.reg-pane.is-active { display: block; }
@keyframes reg-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.reg-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 14px; margin-bottom: 14px;
    border-radius: var(--auth-radius);
    font-size: .88rem; line-height: 1.45;
    border: 1px solid transparent; font-weight: 500;
}
.reg-alert.is-error { background: var(--auth-danger-soft); color: #991b1b; border-color: var(--auth-danger-line); }
.reg-alert.is-error::before { content: "\f071"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--auth-danger); flex-shrink: 0; margin-top: 1px; }
.reg-alert.is-success { background: var(--auth-success-soft); color: #166534; border-color: var(--auth-success-line); }
.reg-alert.is-success::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--auth-success); flex-shrink: 0; margin-top: 1px; }

.reg-hint { color: var(--auth-slate-400); font-weight: 400; font-size: .78rem; margin-left: 4px; }

.reg-otp-intro {
    display: flex; gap: 12px; align-items: center;
    margin-bottom: 18px; padding: 14px 16px;
    background: var(--auth-slate-50); border-radius: var(--auth-radius);
    border: 1px solid var(--auth-slate-200);
}
.reg-otp-intro p { margin: 0; font-size: .9rem; color: var(--auth-ink-muted); line-height: 1.45; }
.reg-otp-intro strong { color: var(--auth-ink); letter-spacing: .02em; }
.reg-otp-icon {
    flex-shrink: 0; width: 42px; height: 42px;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: var(--auth-primary); font-size: 1.15rem;
}

.reg-otp-boxes { display: flex; gap: 8px; justify-content: center; margin: 8px 0 12px; }
.reg-otp-input {
    width: 48px; height: 56px;
    text-align: center;
    font-size: 1.4rem; font-weight: 600;
    color: var(--auth-ink);
    border: 1.5px solid var(--auth-slate-200);
    border-radius: 10px;
    background: var(--auth-slate-50);
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition), transform var(--auth-transition), background-color var(--auth-transition);
    outline: none;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}
.reg-otp-input:hover { border-color: var(--auth-slate-300); background: #fff; }
.reg-otp-input:focus {
    background: #fff;
    border-color: var(--auth-primary);
    box-shadow: var(--auth-ring);
    transform: translateY(-1px);
}

.reg-otp-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .82rem; margin-bottom: 18px; flex-wrap: wrap; gap: 6px;
}
.reg-otp-timer { color: var(--auth-ink-faint); }
.reg-otp-timer b { color: var(--auth-ink); font-variant-numeric: tabular-nums; }
.reg-otp-resend {
    background: none; border: 0;
    color: var(--auth-primary); font-weight: 600; cursor: pointer;
    padding: 4px 0; font-size: .82rem;
    font-family: inherit; transition: color var(--auth-transition);
}
.reg-otp-resend:hover:not(:disabled) { color: var(--auth-primary-dark); text-decoration: underline; }
.reg-otp-resend:disabled { color: var(--auth-slate-400); cursor: not-allowed; }
.reg-otp-resend:focus-visible { outline: none; box-shadow: var(--auth-ring); border-radius: 4px; }

.reg-back-link {
    margin-top: 12px; background: none; border: 0;
    color: var(--auth-ink-faint); cursor: pointer; font-size: .85rem;
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
    font-family: inherit; transition: color var(--auth-transition);
}
.reg-back-link:hover { color: var(--auth-ink); }
.reg-back-link:focus-visible { outline: none; box-shadow: var(--auth-ring); border-radius: 4px; }

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 900px) {
    .modern-login-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 16px;
    }
    .auth-hero { text-align: center; padding: 0; }
    .auth-hero-logo { justify-content: center; }
    .auth-hero-tagline { margin: 10px auto 0; font-size: 1.25rem; }
    .auth-brand { display: inline-flex; }
    .auth-hero { display: none; }
}

@media (max-width: 576px) {
    .login-form-panel,
    .register-form-container {
        padding: 22px 18px;
        border-radius: 10px;
    }
    .modern-login-container { padding: 20px 12px; }
    .form-title { font-size: 1.45rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
    .reg-otp-input { width: 42px; height: 50px; font-size: 1.2rem; }
    .reg-otp-boxes { gap: 6px; }
    .reg-step-label { font-size: .78rem; }
    .auth-trust { gap: 10px; font-size: 11px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .login-button.is-loading::after,
    .register-button.is-loading::after { animation-duration: 2s; }
    .reg-pane { animation: none; }
    .login-button:hover,
    .register-button:hover { transform: none; }
}

/* Legacy compatibility */
.creative-register-page,
.creative-register-page .register-container {
    width: 100%; max-width: 100%; padding: 0; margin: 0;
}
.hero-badge { display: inline-block; background: rgba(220,38,38,0.15); color: #fca5a5; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.highlight { color: var(--auth-primary); }
