/* TSAH — Login Gate (rangi kutoka tsah-core.css) */
:root {
    --auth-blue: var(--tsah-blue);
    --auth-cyan: var(--tsah-cyan);
    --auth-navy: var(--tsah-navy);
    --auth-navy-mid: var(--tsah-navy-mid);
    --auth-navy-light: var(--tsah-navy-light);
    --auth-teal: var(--tsah-teal);
    --auth-gold: var(--tsah-gold);
    --auth-surface: var(--tsah-surface);
    --auth-text: var(--tsah-text);
    --auth-muted: var(--tsah-muted);
    --auth-border: var(--tsah-border);
    --auth-radius: var(--tsah-radius);
    --auth-font: var(--tsah-font);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

.auth-body {
    font-family: var(--auth-font);
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--auth-text);
    -webkit-font-smoothing: antialiased;
}

.auth-body--gate {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--auth-navy) 0%, var(--auth-navy-mid) 50%, var(--auth-navy-light) 100%);
}

.auth-body--modal-open { overflow: hidden; }

/* —— Background orbs (trial + kuboreshwa) —— */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: authOrbFloat 10s ease-in-out infinite alternate;
}

.auth-bg-orb--1 {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -120px;
    background: rgba(0, 198, 255, 0.18);
}

.auth-bg-orb--2 {
    width: 460px;
    height: 460px;
    bottom: -100px;
    right: -100px;
    background: rgba(0, 114, 255, 0.15);
    animation-duration: 12s;
    animation-delay: -3s;
}

.auth-bg-orb--3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 55%;
    background: rgba(26, 122, 85, 0.12);
    animation-duration: 14s;
    animation-delay: -6s;
}

.auth-bg-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

@keyframes authOrbFloat {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(40px) scale(1.05); }
}

/* —— Lang float —— */
.auth-lang-float {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 50;
}

.auth-lang-float .tsah-lang-switch {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.auth-lang-float .tsah-lang-switch button {
    color: rgba(255, 255, 255, 0.8);
}

.auth-lang-float .tsah-lang-switch button.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* —— Gate card —— */
.auth-gate-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-gate {
    width: 100%;
    max-width: 920px;
    min-height: 520px;
    display: flex;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: authGateIn 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes authGateIn {
    from { opacity: 0; transform: scale(0.94) translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* —— Left brand panel —— */
.auth-gate-brand {
    width: 42%;
    min-width: 0;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, var(--auth-blue) 0%, var(--auth-cyan) 100%);
    position: relative;
    overflow: hidden;
}

.auth-gate-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.08) 0%, transparent 45%);
    pointer-events: none;
}

.auth-gate-brand > * { position: relative; z-index: 1; }

.auth-gate-logo-ring {
    width: 88px;
    height: 88px;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-gate-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.auth-gate-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.auth-gate-subtitle {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.92;
    margin-bottom: 8px;
}

.auth-gate-tagline {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.5;
    max-width: 260px;
    margin-bottom: 22px;
}

.auth-gate-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.auth-gate-badges li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-gate-badges i { font-size: 10px; }

.auth-gate-motto {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-gate-motto i { color: var(--auth-gold); }

/* —— Right form panel —— */
.auth-gate-panel {
    flex: 1;
    min-width: 0;
    background: var(--auth-surface);
    padding: 32px 36px 56px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.auth-gate-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--auth-border);
}

.auth-gate-tab {
    flex: 1;
    max-width: 200px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--auth-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
}

.auth-gate-tab::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--auth-blue), var(--auth-cyan));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-gate-tab.active {
    color: var(--auth-blue);
}

.auth-gate-tab.active::after {
    transform: scaleX(1);
}

.auth-gate-tab:hover:not(.active) {
    color: var(--auth-text);
}

.auth-gate-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--auth-blue);
    cursor: pointer;
}

.auth-gate-back:hover { text-decoration: underline; }

.auth-gate-footer {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: var(--auth-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-gate-footer a {
    color: var(--auth-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-gate-footer a:hover { text-decoration: underline; }

/* —— Panels —— */
.auth-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    animation: authSlideIn 0.45s ease;
}

.auth-panel.active {
    display: flex;
}

@keyframes authSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}

.auth-panel-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--auth-text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.auth-panel-desc {
    font-size: 13px;
    color: var(--auth-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* —— Alerts —— */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--auth-radius);
    font-size: 13px;
    margin-bottom: 16px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.auth-alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* —— Forms —— */
.auth-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--auth-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-input-group { margin-bottom: 12px; }

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius);
    font-family: inherit;
    font-size: 14px;
    color: var(--auth-text);
    background: #fafbfc;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--auth-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 114, 255, 0.15);
}

.auth-toggle-pw {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    border-radius: 8px;
}

.auth-toggle-pw:hover { color: var(--auth-blue); }

.auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    margin-top: 8px;
    border: none;
    border-radius: var(--auth-radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--auth-blue), var(--auth-cyan));
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.35);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 114, 255, 0.45);
}

.auth-btn-secondary {
    background: linear-gradient(135deg, var(--auth-navy-mid), var(--auth-navy-light));
    color: #fff;
    box-shadow: 0 6px 16px rgba(15, 32, 39, 0.3);
}

.auth-btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

.auth-link-hint {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--auth-muted);
}

.auth-link {
    background: none;
    border: none;
    color: var(--auth-blue);
    font-weight: 700;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-link-hint a { color: var(--auth-blue); font-weight: 600; }

.auth-link-hint--parent {
    margin-top: 8px;
    font-size: 12px;
}

/* —— Modal (usajili) —— */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s, visibility 0.35s;
}

.auth-modal.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 32, 39, 0.65);
    backdrop-filter: blur(10px);
}

.auth-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1080px, 96vw);
    max-height: calc(100dvh - 40px);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}

.auth-modal.is-open .auth-modal-dialog {
    transform: none;
    opacity: 1;
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--auth-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover { background: #e2e8f0; color: var(--auth-text); }

.auth-modal-card {
    background: var(--auth-surface);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 32px 36px 28px;
    scrollbar-width: thin;
}

.auth-modal-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--auth-border);
}

.auth-modal-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--auth-text);
    margin-bottom: 4px;
}

.auth-modal-head p {
    font-size: 14px;
    color: var(--auth-muted);
    line-height: 1.55;
}

.auth-modal-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--auth-blue);
    margin-bottom: 6px;
}

.auth-reg-steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.auth-reg-steps li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--auth-muted);
    padding: 6px 10px;
    border-radius: 100px;
    background: #f1f5f9;
    border: 1px solid var(--auth-border);
}

.auth-reg-steps li span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: #e2e8f0;
    color: var(--auth-muted);
}

.auth-reg-steps li.active {
    color: var(--auth-blue);
    background: var(--tsah-bg-accent, #eef6ff);
    border-color: color-mix(in srgb, var(--auth-blue) 25%, #fff);
}

.auth-reg-steps li.active span {
    background: var(--auth-gradient-primary, linear-gradient(135deg, var(--auth-blue), var(--auth-cyan)));
    color: #fff;
}

.auth-reg-steps li em {
    font-style: normal;
}

/* —— Register form —— */
.auth-form-register label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 6px;
    line-height: 1.35;
}
.auth-form-register input,
.auth-form-register select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius);
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 14px;
    background: #fafbfc;
}

.auth-form-register input:focus,
.auth-form-register select:focus {
    outline: none;
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.12);
    background: #fff;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 16px;
}

.auth-field-full { grid-column: 1 / -1; }

.auth-fieldset {
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 18px 18px 12px;
    margin-bottom: 18px;
    background: #fafbfc;
    scroll-margin-top: 80px;
}

.auth-fieldset legend {
    font-size: 13px;
    font-weight: 800;
    color: var(--auth-text);
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-fieldset legend i {
    color: var(--auth-blue);
}

.auth-field-hint {
    font-size: 12px;
    color: var(--auth-muted);
    margin-bottom: 10px;
}

.auth-field-hint--inline {
    margin: -6px 0 12px;
    line-height: 1.45;
}

.auth-field-status {
    margin: 4px 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-field-status.is-ok {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.auth-field-status.is-warn {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.auth-field-status.is-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.auth-register-otp-msg.is-login-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.auth-register-otp-msg.is-login-hint .auth-btn-compact {
    align-self: stretch;
}

/* —— Email OTP (usajili) —— */
.auth-email-otp {
    margin-top: 4px;
    padding: 16px;
    border: 1.5px dashed rgba(0, 114, 255, 0.35);
    border-radius: var(--auth-radius);
    background: linear-gradient(135deg, rgba(0, 114, 255, 0.04) 0%, rgba(0, 198, 255, 0.06) 100%);
}

.auth-email-otp[hidden] { display: none; }

.auth-email-otp-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.auth-email-otp-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--auth-blue), var(--auth-cyan));
    color: #fff;
    font-size: 16px;
}

.auth-email-otp-head strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--auth-text);
    margin-bottom: 4px;
}

.auth-email-otp-head p {
    margin: 0;
    font-size: 12px;
    color: var(--auth-muted);
    line-height: 1.45;
}

.auth-email-otp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 4px;
}

.auth-email-otp-resend {
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-muted);
}

.auth-email-otp-verify label {
    margin-bottom: 8px;
}

.auth-otp-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.auth-otp-input-row input {
    flex: 1;
    margin-bottom: 0 !important;
    font-size: 20px !important;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}

.auth-otp-input-row .auth-btn {
    flex-shrink: 0;
    margin: 0;
    white-space: nowrap;
}

.auth-email-otp-msg {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 1.4em;
}

.auth-email-otp-msg.is-error { color: #dc2626; }
.auth-email-otp-msg.is-success { color: #059669; }
.auth-email-otp-msg.is-info { color: var(--auth-blue); }

.auth-email-otp-msg--demo {
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 10px;
    padding: 10px 12px;
    color: #92400e;
    font-family: monospace;
}

.auth-email-otp-verified {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--auth-radius);
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.25);
    color: #047857;
    font-size: 13px;
    font-weight: 700;
}

.auth-email-otp-verified i {
    font-size: 18px;
}

.auth-email-otp-verified[hidden] { display: none; }

@media (max-width: 560px) {
    .auth-otp-input-row {
        flex-direction: column;
    }
    .auth-otp-input-row .auth-btn {
        width: 100%;
        justify-content: center;
    }
}

.auth-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.auth-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    color: var(--auth-text);
    cursor: pointer;
}

.auth-level-groups { display: flex; flex-direction: column; gap: 10px; }

.auth-level-group {
    padding: 12px;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    background: #fff;
}

.auth-level-group[hidden] { display: none; }

.auth-level-group-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--auth-text);
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--auth-muted);
    margin-bottom: 14px;
    cursor: pointer;
}

.auth-panel-register {
    position: relative;
}

.auth-register-otp-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px 18px 18px;
    background: linear-gradient(165deg, #f0f9ff 0%, #f8fafc 100%);
    border-radius: var(--auth-radius);
    border: 1px solid #bae6fd;
}

.auth-register-otp-page[hidden] { display: none; }

.auth-register-otp-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    text-align: left;
}

.auth-register-otp-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: var(--auth-blue);
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 114, 255, 0.1);
}

.auth-register-otp-copy h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.3;
}

.auth-register-otp-lead {
    font-size: 13px;
    color: var(--auth-muted);
    line-height: 1.45;
    margin: 0;
}

.auth-register-otp-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--auth-text);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 14px;
    max-width: 100%;
    overflow: hidden;
}

.auth-register-otp-email strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-register-otp-email i {
    color: var(--auth-blue);
    flex-shrink: 0;
}

.auth-register-otp-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--auth-muted);
    margin-bottom: 6px;
    text-align: left;
}

.auth-register-otp-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px !important;
    padding: 12px 14px !important;
    font-size: 22px !important;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    border-radius: var(--auth-radius);
    border: 1.5px solid #93c5fd;
    background: #fff;
}

.auth-register-otp-input:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.15);
    outline: none;
}

.auth-register-otp-submit {
    width: 100%;
    justify-content: center;
    margin: 0 0 8px;
}

.auth-register-otp-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.auth-register-otp-actions .auth-btn-compact {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
}

.auth-register-otp-hint {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-muted);
    text-align: center;
}

/* Pongezi — sekunde 5 kabla ya ukurasa wa kusubiri idhini */
.auth-register-celebration {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: var(--auth-radius);
    overflow: hidden;
}

.auth-register-celebration[hidden] { display: none; }

.auth-register-celebration-glow {
    position: absolute;
    inset: 0;
    background: rgba(236, 253, 245, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-register-celebration-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: min(480px, 92vw);
    width: 100%;
    padding: 40px 32px 36px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(209, 250, 229, 0.92) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow:
        0 24px 60px rgba(5, 150, 105, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    animation: authCelebrationIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-register-celebration.is-leaving .auth-register-celebration-card {
    animation: authCelebrationOut 0.45s ease-in both;
}

.auth-register-celebration.is-leaving .auth-register-celebration-glow {
    animation: authCelebrationFade 0.45s ease-in both;
}

.auth-register-celebration-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.25);
    animation: authCelebrationRing 1.8s ease-out infinite;
    pointer-events: none;
}

.auth-register-celebration-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 38px;
    box-shadow: 0 10px 32px rgba(5, 150, 105, 0.45);
    animation: authCelebrationPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.auth-register-celebration-card h3 {
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #047857;
    margin: 0 0 14px;
    animation: authCelebrationText 0.5s ease 0.35s both;
}

.auth-register-celebration-card p {
    font-size: clamp(1rem, 2.8vw, 1.125rem);
    line-height: 1.65;
    color: #065f46;
    margin: 0;
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
    animation: authCelebrationText 0.5s ease 0.45s both;
}

.auth-register-celebration-sub {
    margin-top: 12px !important;
    font-size: clamp(0.9rem, 2.4vw, 1rem) !important;
    color: #059669 !important;
    font-weight: 600;
    animation: authCelebrationText 0.5s ease 0.55s both;
}

.auth-register-username-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    max-width: 420px;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-register-username-hint i {
    color: var(--auth-blue);
}

.auth-register-username-hint strong {
    font-size: 1.05rem;
    color: #0f172a;
    letter-spacing: 0.02em;
}

@keyframes authCelebrationIn {
    from { opacity: 0; transform: scale(0.88) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes authCelebrationOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.94) translateY(-8px); }
}

@keyframes authCelebrationFade {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes authCelebrationPop {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes authCelebrationRing {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes authCelebrationText {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-register-success {
    text-align: center;
    padding: 28px 22px;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 100%);
    border-radius: var(--auth-radius);
    border: 1px solid #bfdbfe;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.auth-register-success.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.auth-register-success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--auth-blue);
    font-size: 22px;
}

.auth-register-success h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-register-success p {
    font-size: 14px;
    color: var(--auth-muted);
    margin-bottom: 18px;
    line-height: 1.6;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.auth-register-next {
    list-style: none;
    text-align: left;
    max-width: 420px;
    margin: 0 auto 22px;
    padding: 14px 16px;
    background: #fff;
    border-radius: var(--auth-radius);
    border: 1px solid var(--auth-border);
}

.auth-register-next li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--auth-text);
    line-height: 1.45;
}

.auth-register-next li + li { margin-top: 10px; }

.auth-register-next i {
    color: var(--auth-blue);
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-consent a {
    color: var(--auth-blue);
    font-weight: 700;
}

#reg-address-summary {
    background: #f1f5f9;
    cursor: default;
}

.auth-form-register select:disabled { opacity: 0.6; }

#panel-register.auth-panel.active { display: block; }

/* —— Responsive —— */
@media (max-width: 800px) {
    .auth-gate {
        flex-direction: column;
        min-height: auto;
        max-width: 440px;
    }

    .auth-gate-brand {
        width: 100%;
        padding: 28px 24px;
    }

    .auth-gate-logo-ring {
        width: 72px;
        height: 72px;
    }

    .auth-gate-title { font-size: 1.4rem; }

    .auth-gate-badges { display: none; }

    .auth-gate-panel {
        padding: 24px 22px 52px;
    }

    .auth-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .auth-gate-wrap { padding: 12px; }
    .auth-grid { grid-template-columns: 1fr; }
    .auth-modal-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-gate, .auth-bg-orb, .auth-panel.active { animation: none; }
}

/* —— Ukurasa wa Soma Kuhusu Mfumo (about.php) —— */
.auth-body--about {
    min-height: 100vh;
}

.about-page {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.about-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #0072ff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.about-back:hover { text-decoration: underline; }

.about-hero-brand {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.about-hero-brand img {
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 114, 255, 0.15);
}

.about-eyebrow {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0072ff;
    letter-spacing: 0.02em;
}

.about-hero h1 {
    margin: 0 0 10px;
    font-family: var(--auth-font-display, 'Fraunces', serif);
    font-size: 1.75rem;
    color: #0f2027;
    line-height: 1.2;
}

.about-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5f6b;
}

.about-block {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 114, 255, 0.1);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(15, 32, 39, 0.06);
}

.about-block--highlight {
    border-color: rgba(0, 114, 255, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.98) 100%);
}

.about-block h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: #0f2027;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-block h2 i {
    color: #0072ff;
    font-size: 1rem;
}

.about-block > p,
.about-intro {
    margin: 0 0 12px;
    line-height: 1.65;
    color: #3d4f59;
    font-size: 0.95rem;
}

.about-roles {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-roles li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 114, 255, 0.08);
    line-height: 1.55;
    font-size: 0.93rem;
    color: #3d4f59;
}

.about-roles li:last-child { border-bottom: none; }

.about-roles strong { color: #0f2027; }

.about-steps {
    margin: 0;
    padding-left: 1.25rem;
}

.about-steps li {
    margin-bottom: 18px;
    line-height: 1.6;
    color: #3d4f59;
    font-size: 0.93rem;
}

.about-steps li:last-child { margin-bottom: 0; }

.about-steps h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #0072ff;
}

.about-steps p { margin: 0; }

.about-steps--compact li { margin-bottom: 10px; }

.about-tips {
    margin: 0;
    padding-left: 1.2rem;
    color: #3d4f59;
    line-height: 1.65;
    font-size: 0.93rem;
}

.about-tips li { margin-bottom: 8px; }

.about-cta {
    text-align: center;
}

.about-cta h2 {
    justify-content: center;
}

.about-cta p { margin-bottom: 18px; }

.about-cta-btn {
    display: inline-flex;
    max-width: 280px;
    margin: 0 auto;
}

.about-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6b7c87;
}

.about-footer a {
    color: #0072ff;
    text-decoration: none;
    font-weight: 600;
}

.about-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .about-hero-brand { flex-direction: column; align-items: center; text-align: center; }
    .about-block { padding: 18px 16px; }
}
