@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #0b1d3b;
    --ink-soft: #5d7394;
    --surface: #ffffff;
    --line: #d2def0;
    --brand-1: #0a1c3f;
    --brand-2: #0d5b88;
    --brand-3: #0f766e;
    --accent: #0ea5e9;
    --accent-deep: #0f766e;
    --danger-bg: #fff1f2;
    --danger-line: #fecdd3;
    --danger-text: #9f1239;
    --shadow-lg: 0 28px 70px rgba(11, 29, 59, 0.2);
    --shadow-soft: 0 14px 34px rgba(11, 29, 59, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
    background:
        radial-gradient(1080px 520px at -10% -10%, #cfe2ff 0%, transparent 62%),
        radial-gradient(900px 500px at 108% 0%, #d4f8ea 0%, transparent 60%),
        linear-gradient(170deg, #ebf3ff, #eefaf5);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    padding: 26px;
}

.auth-brand-panel {
    border-radius: 24px;
    padding: 26px;
    color: #f8fafc;
    background: linear-gradient(132deg, var(--brand-1), var(--brand-2) 58%, var(--brand-3));
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-brand-panel::before {
    width: 340px;
    height: 340px;
    right: -110px;
    top: -220px;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.46), rgba(56, 189, 248, 0));
}

.auth-brand-panel::after {
    width: 280px;
    height: 280px;
    left: -130px;
    bottom: -190px;
    background: radial-gradient(circle at center, rgba(74, 222, 128, 0.3), rgba(74, 222, 128, 0));
}

.brand {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.brand-logo {
    width: 184px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(10, 28, 63, 0.3);
}

.brand-copy {
    display: inline-grid;
    gap: 1px;
}

.brand-name {
    font-size: 17px;
    line-height: 1.1;
}

.brand-sub {
    font-size: 11px;
    opacity: 0.9;
}

.brand-message {
    max-width: 580px;
}

.kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 11px;
    font-weight: 700;
}

.brand-message h1 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.07;
    letter-spacing: -0.02em;
}

.brand-message p {
    margin: 14px 0 0;
    color: #d6e8ff;
    line-height: 1.6;
    max-width: 560px;
}

.brand-points {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-points span {
    border-radius: 999px;
    border: 1px solid rgba(224, 238, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    padding: 7px 11px;
    font-weight: 600;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(480px, 100%);
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.auth-header .eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 700;
}

.auth-header h2 {
    margin: 8px 0 0;
    font-size: 28px;
    letter-spacing: -0.01em;
}

.auth-header p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.auth-alert {
    margin-top: 18px;
    border-radius: 12px;
    border: 1px solid var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger-text);
    padding: 10px 12px;
}

.auth-alert p {
    margin: 0;
}

form {
    margin-top: 18px;
}

.field-group {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.field-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    font-weight: 700;
}

.auth-input {
    width: 100%;
    border: 1px solid #c7d8ef;
    border-radius: 12px;
    padding: 12px 13px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    background: #fcfdff;
}

.auth-input:focus {
    border-color: #7cbbe9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.field-error {
    color: var(--danger-text);
    font-size: 12px;
}

.remember-wrap {
    margin-top: 14px;
}

.remember-label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--ink-soft);
    font-size: 13px;
    cursor: pointer;
}

.remember-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.auth-submit {
    margin-top: 18px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    cursor: pointer;
    background: linear-gradient(126deg, var(--accent-deep), var(--accent));
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

@media (max-width: 1040px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 12px;
        gap: 12px;
    }

    .auth-brand-panel,
    .auth-card {
        border-radius: 16px;
        padding: 16px;
    }

    .brand-logo {
        width: 150px;
        height: 46px;
    }

    .brand-message h1 {
        font-size: 30px;
    }

    .auth-header h2 {
        font-size: 24px;
    }
}
