/* ═══════════════════════════════════════════════════════════════════════════
   ConsignRev Login — Light Public Gateway
   Presentation-only replacement for the former dark login theme.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --cr-red: #e30613;
    --cr-red-dark: #bd0711;
    --cr-red-soft: #fff0f1;
    --cr-ink: #111827;
    --cr-text: #253247;
    --cr-muted: #687386;
    --cr-line: #dde3ea;
    --cr-line-strong: #cbd3dd;
    --cr-panel: #ffffff;
    --cr-page: #f7f8fa;
    --cr-soft: #f1f4f7;
    --cr-success: #16803c;
    --cr-shadow: 0 18px 55px rgba(22, 34, 51, 0.10);
    --cr-radius: 18px;
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--cr-page);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--cr-ink);
    background:
        radial-gradient(circle at 12% 35%, rgba(227, 6, 19, 0.045), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f8f9fb 58%, #f2f4f7 100%);
    line-height: 1.5;
}

/* Public shell */
.cr-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cr-auth-header {
    min-height: 82px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    width: min(1540px, calc(100% - 64px));
    margin: 0 auto;
    padding: 16px 0;
}

.cr-auth-logo {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.cr-auth-logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cr-public-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 3.2rem);
    white-space: nowrap;
}

.cr-public-nav a {
    color: #171a21;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 650;
    transition: color .18s ease;
}

.cr-public-nav a:hover,
.cr-public-nav a:focus-visible {
    color: var(--cr-red);
}

/* Main two-column composition */
.cr-auth-main {
    flex: 1;
    width: min(1540px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
    gap: clamp(3rem, 6vw, 7rem);
    align-items: center;
    padding: clamp(28px, 5vh, 68px) 0 clamp(42px, 6vh, 76px);
}

.cr-auth-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cr-hero-copy {
    position: relative;
    z-index: 2;
    width: min(650px, 100%);
    padding-left: clamp(0px, 2vw, 34px);
}

.cr-hero-kicker {
    margin: 0 0 16px;
    color: var(--cr-red);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.cr-hero-copy h1 {
    margin: 0;
    max-width: 720px;
    color: #10141c;
    font-size: clamp(2.8rem, 3.55vw, 4.35rem);
    line-height: 1.01;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.cr-hero-copy h1 span {
    display: block;
    margin-top: 8px;
    color: var(--cr-red);
}

.cr-hero-lead {
    max-width: 620px;
    margin: 28px 0 32px;
    color: var(--cr-text);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.7;
}

.cr-hero-features {
    display: grid;
    gap: 0;
    width: min(620px, 100%);
    border-top: 1px solid var(--cr-line);
}

.cr-hero-feature {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid var(--cr-line);
}

.cr-feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #f1b2b7;
    border-radius: 12px;
    color: var(--cr-red);
    background: #fff;
    box-shadow: 0 7px 22px rgba(227, 6, 19, .06);
}

.cr-hero-feature strong {
    display: block;
    margin-bottom: 3px;
    color: #1a1f29;
    font-size: .98rem;
    font-weight: 750;
}

.cr-hero-feature small {
    display: block;
    color: var(--cr-muted);
    font-size: .84rem;
    line-height: 1.45;
}

/* Deliberately abstract vehicle backdrop: no external image dependency */
.cr-hero-visual {
    position: absolute;
    z-index: 1;
    left: -16%;
    bottom: -25px;
    width: 70%;
    height: 220px;
    pointer-events: none;
    opacity: .16;
}

.cr-hero-visual i {
    position: absolute;
    left: 0;
    bottom: 0;
    color: #111827;
    font-size: clamp(180px, 20vw, 310px);
    filter: grayscale(1);
}

.cr-hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    left: -150px;
    bottom: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227,6,19,.17) 0%, rgba(227,6,19,0) 72%);
}

/* Form zone/card */
.cr-auth-form-zone {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.login-card {
    width: min(100%, 500px);
    margin-left: auto;
    padding: clamp(28px, 2.6vw, 40px);
    border: 1px solid #e2e6ec;
    border-radius: var(--cr-radius);
    background: rgba(255,255,255,.97);
    box-shadow: var(--cr-shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-lock-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    color: var(--cr-red);
    background: var(--cr-red-soft);
    font-size: 1.25rem;
}

.login-header h1 {
    margin: 0 0 6px;
    color: #151922;
    font-size: clamp(1.7rem, 2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.login-header p {
    margin: 0;
    color: var(--cr-muted);
    font-size: .9rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .86rem;
}

.alert-error {
    color: #9e0e19;
    border: 1px solid #f4c2c6;
    background: #fff1f2;
}

.alert-info {
    color: #234d7c;
    border: 1px solid #c9dff8;
    background: #eff7ff;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.field label {
    color: #222832;
    font-size: .78rem;
    font-weight: 700;
}

.field .rz-textbox,
.field .rz-password {
    width: 100% !important;
    min-height: 49px !important;
    padding: 0 14px !important;
    color: var(--cr-ink) !important;
    border: 1px solid var(--cr-line-strong) !important;
    border-radius: 9px !important;
    background: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .92rem !important;
    box-shadow: none !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}

.field .rz-textbox:focus,
.field .rz-password:focus,
.field .rz-textbox:focus-within,
.field .rz-password:focus-within {
    border-color: var(--cr-red) !important;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, .08) !important;
    outline: none !important;
}

.field .rz-textbox::placeholder,
.field .rz-password::placeholder {
    color: #9aa3b0 !important;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cr-muted);
    font-size: .84rem;
    cursor: pointer;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    position: relative;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 1px solid #bfc7d2;
    border-radius: 4px;
    background: #fff;
}

.checkbox input:checked + .checkbox-box {
    border-color: var(--cr-red);
    background: var(--cr-red);
}

.checkbox input:checked + .checkbox-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.link-btn {
    padding: 0;
    border: 0;
    color: var(--cr-red);
    background: transparent;
    font: inherit;
    font-size: .84rem;
    font-weight: 650;
    cursor: pointer;
}

.link-btn:hover {
    color: var(--cr-red-dark);
    text-decoration: underline;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    min-height: 51px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 9px;
    font-family: 'Inter', sans-serif;
    font-size: .94rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn-primary {
    margin-top: 4px;
    border: 1px solid var(--cr-red);
    color: #fff;
    background: var(--cr-red);
    box-shadow: 0 8px 18px rgba(227, 6, 19, .16);
}

.btn-primary:hover {
    border-color: var(--cr-red-dark);
    background: var(--cr-red-dark);
    box-shadow: 0 10px 24px rgba(227, 6, 19, .22);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(1px);
}

.btn-secondary {
    border: 1px solid var(--cr-line-strong);
    color: var(--cr-red);
    background: #fff;
}

.btn-secondary:hover {
    border-color: #e8a9ae;
    background: #fff7f8;
}

.login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #8b95a2;
    font-size: .8rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    background: var(--cr-line);
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cr-line);
}

.login-new-account {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--cr-muted);
    font-size: .82rem;
}

.link-btn-red {
    color: var(--cr-red);
}

.language-switcher {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--cr-line);
    border-radius: 999px;
    color: #a0a7b1;
    font-size: .76rem;
    font-weight: 700;
}

.language-switcher a {
    color: #737d8b;
    text-decoration: none;
}

.language-switcher a.active,
.language-switcher a:hover {
    color: var(--cr-red);
}

/* Responsive */
@media (max-width: 1120px) {
    .cr-auth-header {
        grid-template-columns: auto 1fr;
    }

    .cr-public-nav {
        justify-self: end;
    }

    .cr-auth-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .cr-auth-hero {
        min-height: auto;
        padding: 42px 0 4px;
    }

    .cr-hero-copy {
        width: min(760px, 100%);
        margin: 0 auto;
        padding-left: 0;
    }

    .cr-hero-visual {
        right: -80px;
        left: auto;
        opacity: .08;
    }

    .cr-auth-form-zone {
        justify-content: center;
    }

    .login-card {
        width: min(100%, 620px);
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .cr-auth-header,
    .cr-auth-main

    .cr-auth-header {
        min-height: 72px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }

    .cr-auth-logo {
        justify-self: center;
    }

    .cr-auth-logo img {
        width: 180px;
    }

    .cr-public-nav {
        justify-self: center;
        gap: 16px;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 3px;
    }

    .cr-public-nav a {
        font-size: .78rem;
    }

    .cr-auth-main {
        padding-top: 20px;
        padding-bottom: 34px;
    }

    .cr-auth-hero {
        padding-top: 14px;
    }

    .cr-hero-copy h1 {
        font-size: clamp(2.35rem, 11vw, 3.45rem);
    }

    .cr-hero-lead {
        margin: 20px 0 24px;
    }

    .cr-hero-visual {
        display: none;
    }

    .login-card {
        padding: 26px 20px;
        border-radius: 14px;
    }

    .form-row,
    .login-footer,
    .cr-auth-footer {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 38px;
    width: 100%;
    padding: 18px max(42px, calc((100vw - 1540px)/2));
    color: #c7cbd1;
    border-top: 1px solid #232830;
    background: #15191e;
    font-size: .78rem;
}

@media (max-width: 430px) {
    .cr-hero-features {
        display: none;
    }

    .cr-public-nav {
        justify-content: flex-start;
    }

    .form-row {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
