:root {
    --navy: #0b1f3a;
    --navy-2: #122c4f;
    --blue: #2563eb;
    --blue-2: #1d4ed8;
    --muted: #64748b;
    --line: #dbe4ef;
    --surface: #ffffff;
    --danger-bg: #fee4e2;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #1e293b;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .22), transparent 32%),
        linear-gradient(135deg, var(--navy), var(--blue-2));
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr);
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 7vw, 96px);
    color: #fff;
    overflow: hidden;
}

.login-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -130px;
    bottom: -160px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, .05);
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-weight: 900;
    color: #06203b;
    background: linear-gradient(135deg, #60a5fa, #2dd4bf);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.brand strong {
    display: block;
    font-size: 16px;
}

.brand small {
    color: #cbd5e1;
}

.login-hero h1 {
    max-width: 720px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.login-hero p {
    max-width: 650px;
    margin: 0;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.65;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 36px;
    background: rgba(244, 247, 251, .97);
    box-shadow: -30px 0 80px rgba(3, 12, 27, .18);
}

.login-card {
    width: min(430px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .13);
}

.login-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: 27px;
    letter-spacing: -.02em;
}

.login-card .subtitle {
    margin: 8px 0 24px;
    color: var(--muted);
    line-height: 1.5;
}

.error-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    color: var(--danger);
    background: var(--danger-bg);
    font-size: 13px;
}

.error-message span,
.error-request-id {
    display: block;
}

.error-request-id {
    margin-top: 8px;
    font-size: .78rem;
}

.error-request-id code {
    overflow-wrap: anywhere;
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 700;
}

.form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.form-field label {
    color: #334155;
    font-size: 13px;
    font-weight: 750;
}

.form-field input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    color: #0f172a;
    background: #fff;
    font: inherit;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.form-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.submit-button {
    width: 100%;
    min-height: 47px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--blue);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s, transform .18s;
}

.submit-button:hover {
    background: var(--blue-2);
}

.submit-button:active {
    transform: translateY(1px);
}

.environment-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eaf2ff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.environment-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
}

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

    .login-hero {
        min-height: 340px;
        padding: 44px 26px;
    }

    .login-hero h1 {
        font-size: 38px;
    }


    .login-panel {
        padding: 24px 16px 40px;
    }
}

@media (max-width: 520px) {
    .login-hero {
        min-height: 280px;
    }

    .brand {
        margin-bottom: 28px;
    }

    .login-hero h1 {
        font-size: 31px;
    }

    .login-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
}
