:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #edf3ff;
    background: #080c16;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(71, 113, 255, 0.14),
            transparent 35%
        ),
        #080c16;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, 0.95fr);
}

.brand-panel {
    padding: clamp(42px, 7vw, 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #20293d;
}

.brand-mark {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9eb8ff;
}

.brand-panel h1 {
    margin:
        28px
        0
        18px;

    max-width: 720px;
    font-size: clamp(2.8rem, 6vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.lead {
    max-width: 600px;
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.65;
    color: #9baac4;
}

.foundation {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8291aa;
    font-size: 0.88rem;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #64dda0;
    box-shadow:
        0
        0
        16px
        rgba(100, 221, 160, 0.45);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 6vw, 90px);
    background:
        rgba(14, 20, 34, 0.72);
}

.state {
    width: min(100%, 480px);
    margin: auto;
}

.eyebrow {
    margin: 0 0 8px;
    color: #87a5ff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: 2.1rem;
    letter-spacing: -0.035em;
}

.subtle {
    margin: 10px 0 28px;
    color: #92a0b9;
}

form {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #b8c4d9;
}

input {
    width: 100%;
    border: 1px solid #2b3650;
    border-radius: 10px;
    padding: 13px 14px;
    outline: none;
    color: #f4f7ff;
    background: #0a101d;
}

input:focus {
    border-color: #718fff;
    box-shadow:
        0
        0
        0
        3px
        rgba(113, 143, 255, 0.13);
}

button {
    border: 0;
    border-radius: 10px;
    padding: 13px 16px;
    font-weight: 800;
    color: #07101e;
    background: #91aaff;
}

button:disabled {
    cursor: progress;
    opacity: 0.6;
}

button.secondary {
    color: #dbe5ff;
    background: #202b40;
}

button.danger {
    color: #ffdfe0;
    background: #54262b;
}

.message {
    min-height: 24px;
    margin-top: 18px;
    color: #aebbd1;
    line-height: 1.45;
}

.message.error {
    color: #ffaaaa;
}

.message.success {
    color: #8be8af;
}

.identity-card {
    margin-top: 28px;
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid #27324a;
    border-radius: 14px;
    background: #0b111f;
}

.identity-card > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7788a5;
}

code {
    overflow-wrap: anywhere;
    color: #dce6fb;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.actions button {
    flex: 1;
}

footer {
    width: min(100%, 480px);
    margin:
        28px
        auto
        0;

    color: #65758f;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.hidden {
    display: none !important;
}

@media (
    max-width: 820px
) {
    .page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: 38vh;
        border-right: 0;
        border-bottom: 1px solid #20293d;
    }

    .brand-panel h1 {
        font-size: clamp(2.6rem, 12vw, 4.8rem);
    }

    .auth-panel {
        min-height: 62vh;
    }
}
