:root {
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #dbe3ed;
    --auth-bg: #f7f9fc;
    --auth-accent: #ff9f43;
    --auth-accent-dark: #f28724;
    --auth-navy: #0b1f33;
}

* {
    box-sizing: border-box;
}

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

body {
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

a {
    color: #b85b0b;
    text-decoration: none;
}

a:hover {
    color: #8f4407;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(360px, 44%) minmax(520px, 56%);
    min-height: 100vh;
}

.auth-visual {
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 159, 67, .23), transparent 28%),
        linear-gradient(145deg, rgba(11, 31, 51, .95), rgba(15, 45, 72, .96)),
        url('../images/car-outlines.avif') center / cover no-repeat;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(32px, 4vw, 64px);
    position: relative;
}

.auth-visual::after {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    height: 420px;
    position: absolute;
    right: -250px;
    top: 22%;
    width: 420px;
}

.auth-brand {
    align-items: center;
    color: var(--auth-ink);
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 750;
    gap: 11px;
    letter-spacing: -.025em;
    width: fit-content;
}

.auth-brand:hover {
    color: inherit;
}

.auth-brand-light {
    color: #fff;
    position: relative;
    z-index: 1;
}

.auth-brand-mark {
    align-items: center;
    background: var(--auth-accent);
    border-radius: 11px;
    box-shadow: 0 8px 22px rgba(255, 159, 67, .24);
    color: #fff;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.auth-visual-copy {
    margin: auto 0;
    max-width: 540px;
    position: relative;
    z-index: 1;
}

.auth-eyebrow {
    color: var(--auth-accent-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.auth-visual .auth-eyebrow {
    color: #ffba78;
}

.auth-visual h1 {
    font-size: clamp(2.3rem, 4.2vw, 4.3rem);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.02;
    margin: 0 0 22px;
    max-width: 650px;
}

.auth-visual-copy > p:not(.auth-eyebrow) {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    max-width: 500px;
}

.auth-benefits {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.auth-benefits li {
    align-items: center;
    color: #e2e8f0;
    display: flex;
    font-size: .9rem;
    gap: 12px;
}

.auth-benefits i {
    align-items: center;
    background: rgba(255, 159, 67, .16);
    border: 1px solid rgba(255, 186, 120, .32);
    border-radius: 50%;
    color: #ffba78;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: .7rem;
    height: 24px;
    justify-content: center;
}

.auth-visual-footer {
    color: #94a3b8;
    font-size: .75rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-form-panel {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 48px clamp(28px, 7vw, 104px);
}

.auth-form-panel-scroll {
    align-items: flex-start;
    overflow-y: auto;
}

.auth-form-wrap {
    margin: auto;
    max-width: 470px;
    width: 100%;
}

.auth-brand-mobile {
    display: none;
    margin-bottom: 42px;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h2 {
    color: var(--auth-ink);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -.04em;
    margin: 0 0 9px;
}

.auth-heading > p:last-child {
    color: var(--auth-muted);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

.auth-alert {
    align-items: flex-start;
    border: 1px solid;
    border-radius: 10px;
    display: flex;
    font-size: .84rem;
    gap: 10px;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 12px 14px;
}

.auth-alert p {
    margin: 0;
}

.auth-alert p + p {
    margin-top: 4px;
}

.auth-alert-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.auth-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #166534;
}

.auth-alert-info,
.auth-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.auth-setup-card {
    align-items: flex-start;
    background: #fff8f1;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    display: flex;
    gap: 13px;
    margin-bottom: 22px;
    padding: 15px;
}

.auth-setup-icon {
    align-items: center;
    background: #ffedd5;
    border-radius: 9px;
    color: #c2410c;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

.auth-setup-card strong {
    display: block;
    font-size: .87rem;
    margin: 0 0 3px;
}

.auth-setup-card p {
    color: #7c2d12;
    font-size: .78rem;
    line-height: 1.5;
    margin: 0 0 7px;
}

.auth-setup-card a {
    font-size: .78rem;
    font-weight: 700;
}

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

.auth-field label {
    color: #334155;
    display: block;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i:first-child {
    color: #94a3b8;
    font-size: .9rem;
    left: 15px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.auth-input-wrap input,
.auth-input-wrap select {
    appearance: none;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    color: var(--auth-ink);
    font: inherit;
    font-size: .9rem;
    height: 50px;
    outline: none;
    padding: 0 46px 0 43px;
    transition: border-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

.auth-input-wrap input::placeholder {
    color: #a8b2c0;
}

.auth-input-wrap input:focus,
.auth-input-wrap select:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(255, 159, 67, .14);
}

.auth-input-wrap input[aria-invalid="true"] {
    border-color: #fb7185;
}

.auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 7px;
    top: 7px;
    width: 36px;
}

.auth-password-toggle:hover {
    background: #f1f5f9;
    color: var(--auth-ink);
}

.auth-password-toggle:focus-visible,
.auth-submit:focus-visible,
.auth-brand:focus-visible,
.auth-switch a:focus-visible {
    outline: 3px solid rgba(255, 159, 67, .32);
    outline-offset: 2px;
}

.auth-select-arrow {
    color: #94a3b8;
    font-size: .7rem;
    pointer-events: none;
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
}

.auth-field-help {
    color: var(--auth-muted);
    font-size: .74rem;
    line-height: 1.45;
    margin: 6px 0 0;
}

.auth-submit {
    align-items: center;
    background: var(--auth-accent);
    border: 1px solid var(--auth-accent);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(255, 159, 67, .22);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: .91rem;
    font-weight: 750;
    height: 50px;
    justify-content: center;
    margin-top: 4px;
    padding: 0 20px;
    position: relative;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
    width: 100%;
}

.auth-submit i {
    position: absolute;
    right: 18px;
}

.auth-submit:hover:not(:disabled) {
    background: var(--auth-accent-dark);
    border-color: var(--auth-accent-dark);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: .52;
}

.auth-switch,
.auth-help {
    color: var(--auth-muted);
    font-size: .8rem;
    line-height: 1.55;
    margin: 24px 0 0;
    text-align: center;
}

.auth-switch a {
    font-weight: 750;
}

@media (max-width: 991.98px) {
    .auth-layout {
        display: block;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-panel,
    .auth-form-panel-scroll {
        align-items: flex-start;
        min-height: 100vh;
        padding: 38px 24px;
    }

    .auth-brand-mobile {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .auth-form-panel,
    .auth-form-panel-scroll {
        padding: 28px 18px 36px;
    }

    .auth-brand-mobile {
        margin-bottom: 34px;
    }

    .auth-heading {
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input-wrap input,
    .auth-input-wrap select,
    .auth-submit {
        transition: none;
    }
}

