:root {
    --atom-navy: #082f59;
    --atom-blue: #1475df;
    --atom-ink: #102f53;
    --atom-muted: #7b8da3;
    --atom-line: #d8e2ed;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.atom-login-page { margin: 0; color: var(--atom-ink); background: #fff; font-family: "Poppins", Arial, sans-serif; -webkit-font-smoothing: antialiased; }

.login-shell { display: grid; grid-template-columns: minmax(0, 57%) minmax(480px, 43%); min-height: 100vh; overflow: hidden; }
.login-visual { position: relative; min-height: 100vh; overflow: hidden; background: url("../images/login/atom-building.webp") 51% center / cover no-repeat; isolation: isolate; }
.login-visual::after { position: absolute; z-index: 3; top: -15%; right: -110px; width: 220px; height: 130%; content: ""; background: #fff; transform: skewX(-10deg); }
.login-visual__shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(4,31,62,.82) 0%, rgba(5,37,72,.42) 38%, rgba(5,37,72,.03) 73%), linear-gradient(0deg, rgba(4,29,57,.9) 0%, rgba(4,29,57,.18) 38%, transparent 66%); }
.login-visual__line { position: absolute; z-index: 4; top: -8%; right: 51px; width: 10px; height: 116%; background: var(--atom-blue); transform: skewX(-10deg); box-shadow: 19px 0 0 rgba(20,117,223,.13); }

.hero-copy { position: absolute; z-index: 2; left: clamp(38px, 4vw, 76px); bottom: clamp(36px, 5vh, 68px); width: min(610px, 72%); color: #fff; }
.hero-copy h2 { margin: 0; font-size: clamp(42px, 4.4vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.hero-rule { display: block; width: 58px; height: 4px; margin: 25px 0 22px; background: #3c9bff; }
.hero-lead { margin: 0 0 14px; font-size: clamp(20px, 1.8vw, 29px); font-weight: 600; line-height: 1.35; }
.hero-text { margin: 0; color: rgba(255,255,255,.78); font-size: clamp(15px, 1.25vw, 20px); line-height: 1.55; }
.hero-features { display: flex; align-items: flex-start; gap: 34px; margin-top: clamp(26px, 4vh, 44px); }
.hero-feature { display: flex; min-width: 120px; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.hero-feature + .hero-feature { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.35); }
.hero-feature__icon { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border: 2px solid #3294fb; border-radius: 50%; background: rgba(5,41,79,.42); }
.hero-feature__icon svg { width: 26px; height: 26px; fill: none; stroke: #dfeeff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-signature { display: flex; align-items: center; gap: 16px; margin-top: 34px; color: rgba(255,255,255,.52); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.hero-signature span { width: 48px; height: 1px; background: rgba(255,255,255,.52); }

.login-panel { position: relative; z-index: 5; display: flex; align-items: center; min-height: 100vh; padding: 38px clamp(48px, 5.5vw, 96px); background: #fff; }
.login-panel__inner { width: min(100%, 470px); margin-inline: auto; }
.brand-wrapper { display: flex; align-items: center; flex-direction: column; margin-bottom: clamp(48px, 7vh, 82px); text-align: center; }
.login-logo { display: block; width: 150px; height: auto; }
.brand-tagline { margin-top: 11px; color: #5f7691; font-size: 10px; font-weight: 500; letter-spacing: .33em; text-transform: uppercase; }
.login-heading { margin-bottom: 28px; }
.login-heading h1 { margin: 0; color: var(--atom-navy); font-size: clamp(30px, 2.4vw, 39px); font-weight: 700; line-height: 1.2; }

.login-form .form-group { margin-bottom: 18px; }
.input-shell { position: relative; width: 100%; }
.input-shell > svg { position: absolute; z-index: 2; top: 50%; left: 20px; width: 23px; height: 23px; fill: none; stroke: #7d91a9; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); pointer-events: none; }
.login-form .form-control { width: 100%; min-height: 56px; padding: 15px 54px 15px 58px; border: 1px solid var(--atom-line); border-radius: 6px; color: var(--atom-ink); background: #fff; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.login-form .form-control::placeholder { color: #99a7b7; }
.login-form .form-control:focus { border-color: var(--atom-blue); box-shadow: 0 0 0 3px rgba(20,117,223,.11); }
.password-toggle { position: absolute; z-index: 3; top: 50%; right: 14px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; color: #7d91a9; background: transparent; transform: translateY(-50%); cursor: pointer; }
.password-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle:hover, .password-toggle:focus { color: var(--atom-blue); outline: 0; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 4px 0 26px; }
.remember-check { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--atom-ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.remember-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--atom-blue); }
.forgot-password-link { color: #136cc9; font-size: 13px; font-weight: 500; text-decoration: none; }
.forgot-password-link:hover { color: var(--atom-navy); text-decoration: underline; }

.login-btn { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: center; gap: 15px; border: 0; border-radius: 6px; color: #fff; background: var(--atom-navy); font-size: 15px; font-weight: 600; box-shadow: 0 9px 22px rgba(8,47,89,.16); transition: background .18s ease, transform .18s ease; }
.login-btn:hover, .login-btn:focus { color: #fff; background: #0a427a; transform: translateY(-1px); }
.login-btn span:last-child { font-size: 22px; font-weight: 400; line-height: 1; }
.dealer-action { margin-top: 25px; text-align: center; }
.dealer-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; color: #8796a8; font-size: 12px; }
.dealer-divider::before, .dealer-divider::after { height: 1px; flex: 1; content: ""; background: var(--atom-line); }
.dealer-link { width: 100%; min-height: 56px; padding: 12px 20px; border: 1.5px solid var(--atom-blue); border-radius: 6px; color: #0f62bd; background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .18s ease, color .18s ease; }
.dealer-link:hover { color: #fff; background: var(--atom-blue); }
.login-footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: clamp(48px, 8vh, 88px); color: #8a9bb0; font-size: 9px; letter-spacing: .25em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.login-footer span { width: 48px; height: 1px; background: #7b9abc; }

.dealer-modal { border: 0; border-radius: 12px; overflow: hidden; }
.dealer-modal .modal-header { align-items: center; border-bottom-color: var(--atom-line); }
.modal-eyebrow { color: var(--atom-blue); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dealer-modal .modal-title { color: var(--atom-navy); font-weight: 700; }
.dealer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.dealer-grid__full { grid-column: 1 / -1; }
.sales-options { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.dealer-modal label { margin-bottom: 8px; color: var(--atom-ink); font-size: 13px; font-weight: 600; }
.dealer-modal .form-control { border-color: var(--atom-line); border-radius: 7px; }
.dealer-modal .form-control:focus { border-color: var(--atom-blue); box-shadow: 0 0 0 3px rgba(20,117,223,.1); }
.dealer-modal .btn-primary { border-color: var(--atom-navy); background: var(--atom-navy); }

@media (max-width: 1199.98px) {
    .login-shell { grid-template-columns: minmax(0, 54%) minmax(450px, 46%); }
    .hero-copy { width: 76%; }
    .hero-features { gap: 18px; }
    .hero-feature { min-width: auto; gap: 8px; font-size: 11px; }
    .hero-feature + .hero-feature { padding-left: 18px; }
    .hero-feature__icon { width: 46px; height: 46px; flex-basis: 46px; }
    .login-panel { padding-inline: 50px; }
}

@media (max-width: 899.98px) {
    .login-shell { display: block; min-height: 100vh; overflow: visible; }
    .login-visual { min-height: 270px; height: 34vh; max-height: 370px; background-position: 52% 42%; }
    .login-visual::after { top: auto; right: -5%; bottom: -38px; width: 110%; height: 75px; transform: skewY(-3deg); }
    .login-visual__line { top: auto; right: -5%; bottom: 24px; width: 110%; height: 7px; transform: skewY(-3deg); box-shadow: 0 13px 0 rgba(20,117,223,.13); }
    .hero-copy { left: 28px; bottom: 30px; width: 70%; }
    .hero-copy h2 { font-size: 40px; }
    .hero-rule { width: 42px; height: 3px; margin: 13px 0; }
    .hero-lead { margin: 0; font-size: 18px; }
    .hero-text, .hero-features, .hero-signature { display: none; }
    .login-panel { min-height: auto; padding: 64px 24px 34px; }
    .login-panel__inner { max-width: 470px; }
    .brand-wrapper { margin-bottom: 40px; }
    .login-logo { width: 128px; }
    .login-footer { margin-top: 48px; }
}

@media (max-width: 575.98px) {
    .login-visual { min-height: 210px; height: 27vh; }
    .hero-copy { left: 22px; bottom: 25px; }
    .hero-copy h2 { font-size: 34px; }
    .hero-lead { font-size: 15px; }
    .login-panel { padding: 58px 20px 28px; }
    .brand-wrapper { margin-bottom: 34px; }
    .brand-tagline { font-size: 8px; letter-spacing: .23em; }
    .login-heading h1 { font-size: 29px; }
    .dealer-grid { display: block; }
    .dealer-modal .modal-body { padding: 18px; }
    .login-footer { gap: 8px; font-size: 8px; letter-spacing: .13em; white-space: normal; }
    .login-footer span { width: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
