:root {
    color-scheme: dark;
    --base: #0B0E13;
    --studio: #0E1218;
    --panel: #14181F;
    --panel-raised: #161B22;
    --line: #27303B;
    --text: #F5F7FA;
    --muted: #A9B4C2;
    --dim: #657080;
    --aqua: #3FC5D2;
    --aqua-light: #5FD6E0;
    --coral: #F0A06A;
    --mint: #62D2B0;
    --danger: #E03B3B;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--base);
    font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(95, 214, 224, 0.08), rgba(11, 14, 19, 0) 34%),
        var(--base);
    color: var(--text);
}

a {
    color: inherit;
}

.auth-shell {
    width: min(1040px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 500px) minmax(300px, 1fr);
    gap: 16px;
    align-items: center;
    padding: 32px 0;
}

.auth-panel,
.trust-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.auth-panel {
    padding: 26px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(63, 197, 210, 0.55);
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--base);
    background: linear-gradient(135deg, var(--aqua-light), var(--coral));
    font-weight: 800;
    font-size: 20px;
}

.brand-name,
.brand-caption,
.copy-block p,
.federated-block p,
.trust-panel p,
.trust-panel h2,
.trust-panel ul {
    margin: 0;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
}

.pilot-pill {
    margin-left: auto;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(98, 210, 176, 0.28);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--mint);
    background: rgba(98, 210, 176, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.brand-caption,
.copy-block p,
.federated-block p,
.trust-panel li,
.delivery-summary {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--studio);
    margin-bottom: 22px;
}

.auth-tabs a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.auth-tabs a[aria-current="page"] {
    background: var(--panel-raised);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(95, 214, 224, 0.3);
}

.auth-tabs a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.copy-block {
    margin-bottom: 22px;
}

.copy-block h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--studio);
    color: var(--text);
    padding: 0 14px;
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(63, 197, 210, 0.16);
}

input::placeholder {
    color: #697586;
}

.primary-action,
.secondary-action {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-action {
    margin-top: 4px;
    color: #081014;
    background: var(--aqua);
}

.primary-action:hover {
    background: var(--aqua-light);
    transform: translateY(-1px);
}

.federated-block {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.secondary-action {
    color: var(--text);
    background: var(--studio);
    border-color: var(--line);
}

.secondary-action:hover,
.text-link:hover {
    border-color: var(--aqua);
    color: var(--aqua-light);
}

.text-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--aqua);
    font-weight: 700;
    text-decoration: none;
}

.delivery-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.delivery-summary span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--studio);
}

.trust-panel {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(95, 214, 224, 0.06), rgba(95, 214, 224, 0)),
        var(--studio);
}

.context-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(240, 160, 106, 0.12);
    color: var(--coral);
    font-size: 13px;
    font-weight: 800;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--mint);
    box-shadow: 0 0 0 6px rgba(98, 210, 176, 0.12);
}

.trust-panel h2 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.status-grid {
    display: grid;
    gap: 10px;
}

.status-item,
.route-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.status-item {
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
}

.status-label,
.route-card span {
    color: var(--dim);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-item strong,
.route-card strong {
    color: var(--text);
    font-size: 14px;
}

.status-item i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    grid-row: 1 / span 2;
}

.tone-ready {
    background: var(--mint);
}

.tone-pending {
    background: var(--coral);
}

.route-card {
    margin-top: 12px;
    padding: 14px;
    display: grid;
    gap: 6px;
}

:focus-visible {
    outline: 2px solid var(--aqua-light);
    outline-offset: 3px;
}

@media (max-width: 820px) {
    .auth-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 16px 0;
    }

    .trust-panel {
        display: none;
    }

    .auth-panel {
        padding: 20px;
    }
}

@media (max-width: 460px) {
    .auth-shell {
        width: min(100% - 20px, 420px);
    }

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

    .copy-block h1 {
        font-size: 26px;
    }
}