:root {
    --auth-bg-top: #f5f7fb;
    --auth-bg-bottom: #dfe7ef;
    --auth-surface: rgba(255, 255, 255, 0.9);
    --auth-panel-border: rgba(148, 163, 184, 0.2);
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-accent: #2563eb;
    --auth-accent-dark: #1d4ed8;
    --auth-accent-soft: rgba(37, 99, 235, 0.12);
    --auth-success-bg: rgba(22, 163, 74, 0.12);
    --auth-success-border: rgba(22, 163, 74, 0.24);
    --auth-success-text: #166534;
    --auth-danger-bg: rgba(220, 38, 38, 0.1);
    --auth-danger-border: rgba(220, 38, 38, 0.2);
    --auth-danger-text: #991b1b;
    --auth-warning-bg: rgba(245, 158, 11, 0.12);
    --auth-warning-border: rgba(245, 158, 11, 0.22);
    --auth-warning-text: #92400e;
    --auth-info-bg: rgba(14, 165, 233, 0.1);
    --auth-info-border: rgba(14, 165, 233, 0.2);
    --auth-info-text: #0f4c81;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28rem),
        linear-gradient(180deg, var(--auth-bg-top) 0%, var(--auth-bg-bottom) 100%);
}

button,
input {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    padding: clamp(16px, 3vw, 36px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--auth-panel-border);
    background: var(--auth-surface);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
}

.auth-showcase {
    position: relative;
    padding: clamp(32px, 4vw, 52px);
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    color: #f8fafc;
    background: linear-gradient(160deg, #0f3d4c 0%, #23556a 45%, #90a58f 100%);
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.34), transparent 26%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.28));
}

.auth-showcase::after {
    content: "";
    position: absolute;
    right: -12%;
    bottom: -18%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: -1;
}

.auth-showcase-inner {
    max-width: 32rem;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #67e8f9;
    box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.16);
}

.auth-showcase-title {
    margin: 0 0 18px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.auth-showcase-copy {
    margin: 0;
    max-width: 30rem;
    color: rgba(226, 232, 240, 0.92);
    font-size: 1.02rem;
    line-height: 1.72;
}

.auth-highlight-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-highlight {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(8px);
}

.auth-highlight-title {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-highlight p {
    margin: 0;
    color: rgba(226, 232, 240, 0.84);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-panel {
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.84);
}

.auth-panel-inner {
    width: min(100%, 430px);
}

.auth-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.auth-brand-mark {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-dark) 100%);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.auth-brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.auth-brand-copy {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.auth-panel-header {
    margin-bottom: 24px;
}

.auth-panel-title {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.auth-panel-copy {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.auth-flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-alert {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-alert-success {
    background: var(--auth-success-bg);
    border-color: var(--auth-success-border);
    color: var(--auth-success-text);
}

.auth-alert-danger {
    background: var(--auth-danger-bg);
    border-color: var(--auth-danger-border);
    color: var(--auth-danger-text);
}

.auth-alert-warning {
    background: var(--auth-warning-bg);
    border-color: var(--auth-warning-border);
    color: var(--auth-warning-text);
}

.auth-alert-info {
    background: var(--auth-info-bg);
    border-color: var(--auth-info-border);
    color: var(--auth-info-text);
}

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

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-label {
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    color: var(--auth-text);
    font-size: 1rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.42);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--auth-accent-soft);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-text);
    box-shadow: 0 0 0 1000px #ffffff inset;
}

.auth-submit {
    margin-top: 6px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-dark) 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 20px 35px rgba(37, 99, 235, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 24px 40px rgba(37, 99, 235, 0.24);
    filter: saturate(1.04);
}

.auth-panel-footnote {
    margin: 18px 0 0;
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-panel-footnote strong {
    color: var(--auth-text);
}

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

    .auth-panel {
        order: -1;
    }

    .auth-showcase {
        min-height: 320px;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .auth-page {
        padding: 12px;
    }

    .auth-shell {
        border-radius: 24px;
    }

    .auth-showcase,
    .auth-panel {
        padding: 24px 20px;
    }

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

    .auth-panel-title {
        font-size: 1.8rem;
    }

    .auth-input,
    .auth-submit {
        height: 54px;
    }
}
