/* ══════════════════════════════════════════
           CARBON DESIGN TOKENS
══════════════════════════════════════════ */
:root {
    --font-sans: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --evolumedia-lime: #D7FE03;

    /* Blue ramp */
    --blue-10: #edf5ff;
    --blue-20: #d0e2ff;
    --blue-30: #a6c8ff;
    --blue-40: #78a9ff;
    --blue-50: #4589ff;
    --blue-60: #0f62fe;
    --blue-70: #0043ce;
    --blue-80: #002d9c;
    --blue-90: #001d6c;

    /* Gray ramp */
    --gray-10: #f4f4f4;
    --gray-20: #e0e0e0;
    --gray-30: #c6c6c6;
    --gray-40: #a8a8a8;
    --gray-50: #8d8d8d;
    --gray-60: #6f6f6f;
    --gray-70: #525252;
    --gray-80: #393939;
    --gray-90: #262626;
    --gray-100: #161616;

    --green-50: #24a148;
    --green-40: #42be65;
    --red-50: #da1e28;
    --red-40: #ff8389;
    --yellow-30: #f1c21b;
    --teal-40: #3ddbd9;
    --teal-50: #009d9a;
}

[data-theme="dark"] {
    --page-bg: #161616;
    --panel-bg: #262626;
    --panel-border: #393939;
    --field-bg: #262626;
    --field-hover: #333333;
    --field-border: #6f6f6f;
    --focus-ring: #4589ff;
    --interactive: #4589ff;
    --link: #78a9ff;
    --text-primary: #f4f4f4;
    --text-secondary: #c6c6c6;
    --text-helper: #8d8d8d;
    --text-disabled: #525252;
    --text-error: #ff8389;
    --text-on-color: #ffffff;
    --border-subtle: #393939;
    --border-strong: #525252;
    --check-fill: #4589ff;
    --support-error: #ff8389;
    --support-ok: #42be65;
    --btn-hover: #0353e9;

    /* Brand panel (always dark) */
    --brand-bg: #161616;
    --brand-grid: rgba(69, 137, 255, 0.06);
    --brand-accent: #0f62fe;
    --brand-accent2: #3ddbd9;
    --brand-text: #f4f4f4;
    --brand-muted: #525252;
}

[data-theme="light"] {
    --page-bg: #f4f4f4;
    --panel-bg: #ffffff;
    --panel-border: #e0e0e0;
    --field-bg: #f4f4f4;
    --field-hover: #e8e8e8;
    --field-border: #8d8d8d;
    --focus-ring: #0f62fe;
    --interactive: #0f62fe;
    --link: #0f62fe;
    --text-primary: #161616;
    --text-secondary: #525252;
    --text-helper: #6f6f6f;
    --text-disabled: #c6c6c6;
    --text-error: #da1e28;
    --text-on-color: #ffffff;
    --border-subtle: #e0e0e0;
    --border-strong: #8d8d8d;
    --check-fill: #0f62fe;
    --support-error: #da1e28;
    --support-ok: #24a148;
    --btn-hover: #0353e9;

    --brand-bg: #161616;
    --brand-grid: rgba(69, 137, 255, 0.06);
    --brand-accent: #0f62fe;
    --brand-accent2: #3ddbd9;
    --brand-text: #f4f4f4;
    --brand-muted: #525252;
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    background: var(--page-bg);
    color: var(--text-primary);
    transition: background .25s, color .25s;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════
   PAGE SHELL
══════════════════════════════════════════ */
.login-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ══════════════════════════════════════════
   LEFT — BRAND PANEL
══════════════════════════════════════════ */
.brand-panel {
    flex: 0 0 55%;
    background: var(--brand-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    animation: panelIn .7s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animated grid background */
.brand-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.brand-grid svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

/* Floating blue glow */
.brand-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.brand-glow-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(15, 98, 254, 0.18) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: glowPulse 8s ease-in-out infinite;
}

.brand-glow-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(61, 219, 217, 0.10) 0%, transparent 70%);
    bottom: 60px;
    right: -60px;
    animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .6;
        transform: scale(1.15);
    }
}

/* Animated scan line */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(69, 137, 255, 0.6) 40%, rgba(61, 219, 217, 0.4) 60%, transparent 100%);
    animation: scanDown 6s linear infinite;
    pointer-events: none;
}

@keyframes scanDown {
    0% {
        top: -1px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ── Brand header ──────────────────────── */
.brand-header {
    position: relative;
    z-index: 2;
}

.ibm-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 64px;
    animation: fadeUp .6s .15s both;
}

.ibm-bars {
    display: flex;
    flex-direction: column;
    gap: 2.8px;
}

.ibm-bar {
    background: #0f62fe;
    height: 3px;
    transform-origin: left;
    animation: barGrow .5s cubic-bezier(.4, 0, .2, 1) both;
}

.ibm-bar:nth-child(1) {
    width: 32px;
    animation-delay: .2s;
}

.ibm-bar:nth-child(2) {
    width: 24px;
    animation-delay: .25s;
}

.ibm-bar:nth-child(3) {
    width: 20px;
    animation-delay: .30s;
}

.ibm-bar:nth-child(4) {
    width: 20px;
    animation-delay: .35s;
}

.ibm-bar:nth-child(5) {
    width: 24px;
    animation-delay: .40s;
}

.ibm-bar:nth-child(6) {
    width: 32px;
    animation-delay: .45s;
}

.ibm-bar:nth-child(7) {
    width: 32px;
    animation-delay: .50s;
}

.ibm-bar:nth-child(8) {
    width: 32px;
    animation-delay: .55s;
}

@keyframes barGrow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.ibm-wordmark {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #f4f4f4;
}

/* ── Main brand copy ──────────────────── */
.brand-copy {
    position: relative;
    z-index: 2;
}

.brand-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-40);
    margin-bottom: 5px;
    font-family: var(--font-mono);
    animation: fadeUp .6s .3s both;
}

.brand-headline {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 200;
    line-height: 1.1;
    color: #f4f4f4;
    letter-spacing: -.01em;
    margin-bottom: 24px;
    animation: fadeUp .6s .4s both;
}

.brand-headline em {
    font-style: normal;
    font-weight: 300;
    color: var(--blue-40);
}

.brand-descriptor {
    font-size: 14px;
    line-height: 1.65;
    color: #8d8d8d;
    max-width: 400px;
    animation: fadeUp .6s .5s both;
}

/* ── Metric pills ────────────────────── */
.brand-metrics {
    display: flex;
    gap: 0;
    margin-top: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    animation: fadeUp .6s .6s both;
}

.metric {
    padding: 18px 28px;
    border-right: 1px solid #2a2a2a;
    border-top: 1px solid #2a2a2a;
}

.metric:first-child {
    border-left: 1px solid #2a2a2a;
}

.metric-value {
    font-size: 26px;
    font-weight: 300;
    color: #f4f4f4;
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 4px;
}

.metric-value span {
    font-size: 16px;
    color: var(--blue-40);
}

.metric-label {
    font-size: 11px;
    color: #6f6f6f;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ── Brand footer ────────────────────── */
.brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeUp .6s .7s both;
    bottom: -30px;
}

.brand-footer-text {
    font-size: 11px;
    color: #393939;
    font-family: var(--font-mono);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6f6f6f;
    font-family: var(--font-mono);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #24a148;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(36, 161, 72, .5);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(36, 161, 72, 0);
    }
}

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

/* ══════════════════════════════════════════
   RIGHT — FORM PANEL
══════════════════════════════════════════ */
.form-panel {
    flex: 0 0 45%;
    background: var(--panel-bg);
    display: flex;
    flex-direction: column;
    transition: background .25s;
    position: relative;
    animation: formPanelIn .7s .1s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes formPanelIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Theme & lang bar */
.form-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 48px;
    gap: 4px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.topbar-btn {
    height: 32px;
    padding: 0 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, color .15s;
    font-family: var(--font-sans);
}

.topbar-btn:hover {
    background: var(--field-hover);
    color: var(--text-primary);
}

.theme-toggle-pill {
    display: flex;
    background: var(--field-bg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.theme-pill-btn {
    height: 30px;
    padding: 0 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background .15s, color .15s;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.theme-pill-btn.active {
    background: var(--interactive);
    color: #fff;
}

.theme-pill-btn:hover:not(.active) {
    background: var(--field-hover);
    color: var(--text-primary);
}

/* ── Form scroll area ────────────────── */
.form-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 64px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

@media (max-width: 1200px) {
    .form-scroll {
        padding: 40px 48px;
    }
}

@media (max-width: 900px) {
    .form-scroll {
        padding: 36px 32px;
    }
}

.form-inner {
    max-width: 400px;
    width: 100%;
}

/* ── Form header ─────────────────────── */
.form-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-helper);
    margin-bottom: 8px;
    font-family: var(--font-mono);
    animation: fadeUp .5s .5s both;
}

.form-title {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 6px;
    animation: fadeUp .5s .55s both;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    animation: fadeUp .5s .6s both;
}

/* ── Inline notification (error/warning) */
.inline-notification {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-left: 3px solid;
    background: var(--field-bg);
    animation: shakeIn .3s cubic-bezier(.4, 0, .2, 1);
}

.inline-notification.error {
    border-left-color: var(--support-error);
}

.inline-notification.warning {
    border-left-color: var(--yellow-30);
}

.inline-notification.success {
    border-left-color: var(--support-ok);
}

@keyframes shakeIn {
    0% {
        transform: translateX(-6px);
        opacity: 0;
    }
    60% {
        transform: translateX(3px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.notif-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.notif-body {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ── Carbon field ────────────────────── */
.cds-field {
    margin-bottom: 0;
    animation: fadeUp .5s both;
}

.cds-field:nth-child(1) {
    animation-delay: .65s;
}

.cds-field:nth-child(2) {
    animation-delay: .72s;
}

.cds-field:nth-child(3) {
    animation-delay: .79s;
}

.cds-field:nth-child(4) {
    animation-delay: .86s;
}

.cds-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cds-label .req {
    color: var(--support-error);
    margin-left: 2px;
}

/* Text input */
.input-wrapper {
    position: relative;
}

.cds-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 48px 0 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--field-bg);
    border: none;
    border-bottom: 1px solid var(--field-border);
    outline: none;
    font-family: var(--font-sans);
    transition: background .15s, border-color .15s;
    -webkit-appearance: none;
    appearance: none;
}

.cds-input::placeholder {
    color: var(--text-helper);
}

.cds-input:hover {
    background: var(--field-hover);
}

.cds-input:focus {
    background: var(--field-hover);
    border-bottom: 2px solid var(--focus-ring);
}

.cds-input.error {
    border-bottom: 2px solid var(--support-error);
}

.cds-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 50px var(--field-bg) inset;
    -webkit-text-fill-color: var(--text-primary);
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-helper);
    pointer-events: none;
    display: flex;
    align-items: center;
    background-color: transparent;
}

.input-icon.clickable {
    pointer-events: all;
    cursor: pointer;
    transition: color .15s;
}

.input-icon.clickable:hover {
    color: var(--text-primary);
}

#pwToggle {
    border: none;
}

/* Error message */
.field-error {
    display: none;
    align-items: flex-start;
    gap: 5px;
    font-size: 12px;
    color: var(--text-error);
    margin-top: 6px;
    line-height: 1.3;
}

.field-error.visible {
    display: flex;
}

/* Field helper */
.field-helper {
    font-size: 12px;
    color: var(--text-helper);
    margin-top: 6px;
    line-height: 1.3;
}

/* Divider between fields */
.field-divider {
    margin-bottom: 24px;
}

/* ── Checkbox ────────────────────────── */
.cds-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    user-select: none;
}

.cds-check-label input {
    display: none;
}

.check-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
    margin-top: 1px;
}

.cds-check-label:hover .check-box {
    border-color: var(--focus-ring);
}

.cds-check-label input:checked + .check-box {
    background: var(--check-fill);
    border-color: var(--check-fill);
}

.cds-check-label input:checked + .check-box svg {
    display: block;
}

.check-box svg {
    display: none;
}

/* ── Divider row ─────────────────────── */
.or-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-helper);
    font-size: 12px;
    animation: fadeUp .5s .9s both;
}

.or-line {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

/* ── Buttons ─────────────────────────── */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #0f62fe;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 400;
    transition: background .15s, box-shadow .15s;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    animation: fadeUp .5s .82s both;
}

.btn-primary:hover {
    background: var(--btn-hover);
}

.btn-primary:active {
    background: #002d9c;
}

.btn-primary:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Ripple */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}

.btn-primary:active::after {
    opacity: 1;
}

.btn-arrow {
    transition: transform .2s;
    margin-top: 8px;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Loading state */
.btn-primary.loading {
    pointer-events: none;
}

.btn-primary.loading .btn-label {
    opacity: 0;
}

.btn-primary.loading .btn-spinner {
    display: flex;
}

.btn-spinner {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 400;
    transition: background .15s, border-color .15s;
    animation: fadeUp .5s .95s both;
}

.btn-secondary:hover {
    background: var(--field-hover);
    border-color: var(--interactive);
}

/* ── SSO Buttons ─────────────────────── */
.sso-buttons {
    display: flex;
    gap: 12px;
}

.sso-btn {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    background: var(--field-bg);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, border-color .15s;
    font-family: var(--font-sans);
    animation: fadeUp .5s both;
}

.sso-btn:nth-child(1) {
    animation-delay: 1.0s;
}

.sso-btn:nth-child(2) {
    animation-delay: 1.05s;
}

.sso-btn:nth-child(3) {
    animation-delay: 1.1s;
}

.sso-btn:hover {
    background: var(--field-hover);
    border-color: var(--interactive);
    color: var(--text-primary);
}

/* ── Form footer links ───────────────── */
.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeUp .5s 1.15s both;
}

.form-link {
    font-size: 14px;
    color: var(--link);
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    font-family: var(--font-sans);
    padding: 0;
    transition: text-decoration .1s;
}

.form-link:hover {
    text-decoration: underline;
}

/* ── Form panel footer ───────────────── */
.form-footer {
    padding: 16px 64px;
    border-top: 1px solid var(--border-subtle);
    font-size: 11px;
    color: var(--text-helper);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
    transition: border-color .25s;
}

@media (max-width: 1200px) {
    .form-footer {
        padding: 16px 48px;
    }
}

@media (max-width: 900px) {
    .form-footer {
        padding: 16px 32px;
    }
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-link {
    color: var(--text-helper);
    text-decoration: none;
    font-size: 11px;
    transition: color .15s;
}

.footer-link:hover {
    color: var(--link);
}

/* ══════════════════════════════════════════
   STRENGTH INDICATOR (password)
══════════════════════════════════════════ */
.pw-strength {
    margin-top: 8px;
    display: none;
}

.pw-strength.visible {
    display: block;
}

.strength-bars {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
}

.strength-bar {
    flex: 1;
    height: 3px;
    background: var(--border-subtle);
    transition: background .3s;
}

.strength-label {
    font-size: 11px;
    color: var(--text-helper);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .login-shell {
        flex-direction: column;
    }

    .brand-panel {
        flex: 0 0 auto;
        padding: 32px 28px;
        min-height: 260px;
    }

    .product-logo {
        margin-bottom: 28px;
    }

    .brand-metrics {
        margin-top: 24px;
        display: none;
    }

    .metric {
        padding: 12px 20px;
    }

    .brand-headline {
        font-size: 28px;
    }

    .form-panel {
        flex: 1;
    }

    .form-scroll {
        padding: 32px 28px;
        justify-content: flex-start;
    }

    .form-topbar {
        padding: 12px 28px;
    }

    .form-footer {
        padding: 14px 28px;
    }

    .brand-descriptor{
        display: none;
    }

    .brand-footer{
        display: none;
    }
}

@media (max-width: 480px) {
    .brand-panel {
        padding: 24px 20px;
    }

    .brand-descriptor {
        display: none;
    }

    .brand-metrics {
        display: none;
    }

    .form-scroll {
        padding: 24px 20px;
    }

    .form-topbar {
        padding: 10px 20px;
    }

    .sso-buttons {
        flex-direction: column;
    }

    .form-footer {
        padding: 14px 20px;
    }
}

/* ══════════════════════════════════════════
   FOCUS VISIBLE (accessibility)
══════════════════════════════════════════ */
.cds-input:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
}

.cds-check-label:focus-within .check-box {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.btn-secondary:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.form-link:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════
   DECORATIVE: floating monospace lines
══════════════════════════════════════════ */
.brand-code-lines {
    position: absolute;
    bottom: 120px;
    right: 40px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.8;
    color: #2a2a2a;
    pointer-events: none;
    z-index: 1;
    animation: fadeUp .6s .9s both;
    text-align: right;
}

.code-line {
    white-space: nowrap;
}

.code-line.hi {
    color: #262626;
}

.code-line.hi-blue {
    color: rgba(15, 98, 254, .4);
}

.code-line.hi-teal {
    color: rgba(61, 219, 217, .3);
}

/* ══════════════════════════════════════════
   OTP INPUT
══════════════════════════════════════════ */
.otp-input {
    flex: 1;
    width: 30px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    font-family: var(--font-mono);
    background: var(--field-bg);
    border: none;
    border-bottom: 2px solid var(--field-border);
    color: var(--text-primary);
    outline: none;
    transition: .15s
}