:root {
    --brand: #0a61ff;
    --brand-strong: #084fd6;
    --text: #0b1b33;
    --muted: #5a6b85;
    --card: #ffffff;
    --border: #d8e0ef;
    --panel: #ffffff;
    --hero: #1b36cf;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: var(--text);
}

a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--brand-strong);
}

.auth-nav {
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e5ebf7;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--brand);
    font-size: 16px;
}

.auth-brand img {
    width: 28px;
    height: 28px;
}

.auth-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 66px);
    position: relative;
}

.auth-panel {
    background: var(--panel);
    display: grid;
    place-items: center;
    padding: 40px 0;
}

.auth-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e1e7f5;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    width: min(420px, 92vw);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.auth-card h1 {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 800;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 700;
    color: var(--text);
}

.input {
    width: 100%;
    border: 1.5px solid #c3cfe6;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border 0.12s ease, box-shadow 0.12s ease;
}

.input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(10, 97, 255, 0.15);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.button.primary {
    background: #0a5bff;
    color: #fff;
    box-shadow: 0 10px 24px rgba(10, 91, 255, 0.25);
    width: 100%;
}

.button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(10, 91, 255, 0.32);
}

.button.ghost {
    background: #fff;
    color: var(--brand);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.button.ghost:hover {
    background: rgba(255, 255, 255, 0.92);
}

.button.full {
    width: 100%;
}

.field-error {
    color: #b91c1c;
    font-size: 14px;
}

.auth-meta {
    margin-top: 12px;
    text-align: left;
    color: var(--muted);
    font-size: 14px;
}

.auth-hero {
    background: var(--hero);
    color: #f8fbff;
    display: grid;
    place-items: center;
    padding: 48px 0;
}

.hero-content {
    max-width: 460px;
    padding: 0 40px;
    text-align: center;
}

.hero-content .button {
    justify-self: center;
}

.hero-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(10, 15, 60, 0.22);
}

.hero-badge img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 12px;
    opacity: 0.75;
    margin-bottom: 10px;
}

.hero-content h2 {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.2;
}

.hero-content p {
    margin: 0 0 18px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.86);
}

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

    .auth-hero {
        order: 2;
        min-height: 280px;
    }

    .auth-shell::after {
        display: none;
    }
}
