.login-page { min-height: 100vh; background: #f4f2eb; }
.login-layout { display: grid; grid-template-columns: minmax(440px, 1.02fr) minmax(520px, .98fr); min-height: 100svh; }
.login-showcase { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: 46px clamp(40px, 5vw, 80px); color: white; overflow: hidden; background: #031622; }
.login-art { position: absolute; inset: 0; background: url("assets/hero-rgm-hub.png") 68% center / cover no-repeat; transform: scale(1.02); }
.login-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,17,22,.94), rgba(2,17,22,.35)), linear-gradient(0deg, rgba(2,18,16,.86), transparent 55%); }
.login-brand { position: relative; z-index: 1; align-self: flex-start; color: white; }
.showcase-copy { position: relative; z-index: 1; margin: auto 0; max-width: 570px; }
.showcase-copy .eyebrow { margin-bottom: 25px; }
.showcase-copy h1 { margin: 0; font-size: clamp(48px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.052em; font-weight: 450; }
.showcase-copy h1 em { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.showcase-copy > p:last-child { max-width: 450px; margin: 28px 0 0; color: rgba(255,255,255,.57); font-size: 15px; line-height: 1.75; }
.showcase-security { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.showcase-security > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(71,221,128,.3); color: var(--green); }
.showcase-security svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.showcase-security p { display: flex; flex-direction: column; gap: 3px; margin: 0; color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.showcase-security strong { color: rgba(255,255,255,.84); font-size: 10px; letter-spacing: .08em; }

.login-panel { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100svh; padding: 100px 50px 75px; }
.back-link { position: absolute; top: 42px; right: 50px; display: flex; align-items: center; gap: 9px; color: #66716c; font-size: 11px; font-weight: 600; }
.back-link svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.back-link:hover svg { transform: translateX(-3px); }
.login-box { width: min(100%, 440px); }
.login-heading { margin-bottom: 40px; }
.login-kicker { margin: 0 0 14px; color: #278953; font-size: 10px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.login-heading h2 { margin: 0; color: var(--ink); font-size: clamp(38px, 4vw, 49px); line-height: 1.05; letter-spacing: -.045em; font-weight: 500; }
.login-heading > p:last-child { margin: 15px 0 0; color: #69736e; font-size: 13px; line-height: 1.6; }
.access-system { display: flex; align-items: center; gap: 18px; min-height: 112px; padding: 20px; border: 1px solid rgba(8,18,15,.14); background: rgba(255,255,255,.65); transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.access-system:hover { border-color: rgba(39,153,85,.5); background: white; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(8,25,18,.08); }
.access-icon { display: grid; flex: 0 0 auto; place-items: center; width: 54px; height: 54px; color: #279955; background: rgba(39,153,85,.08); }
.access-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.access-copy { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.access-copy small { color: #279955; font-size: 8px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.access-copy strong { color: var(--ink); font-size: 17px; font-weight: 650; }
.access-copy > span { color: #7c8782; font-size: 10px; }
.access-arrow { flex: 0 0 auto; width: 19px; fill: none; stroke: #279955; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.access-system:hover .access-arrow { transform: translateX(4px); }
.secure-handoff { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 15px 17px; color: #69736e; background: rgba(39,153,85,.06); }
.secure-handoff svg { flex: 0 0 auto; width: 18px; fill: none; stroke: #279955; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.secure-handoff p { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 9px; line-height: 1.5; }
.secure-handoff strong { color: #405049; font-size: 10px; }
.secure-handoff span { color: #2a8050; }
.login-form > label { display: block; margin: 0 0 9px; color: #43504a; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.login-field { display: flex; align-items: center; height: 56px; margin-bottom: 23px; border: 1px solid rgba(8,18,15,.16); background: rgba(255,255,255,.62); transition: border-color .2s, background .2s, box-shadow .2s; }
.login-field:focus-within { border-color: #2ab662; background: white; box-shadow: 0 0 0 3px rgba(42,182,98,.08); }
.login-field.invalid { border-color: #bf554d; }
.login-field > svg { flex: 0 0 auto; width: 19px; margin-left: 17px; fill: none; stroke: #81908a; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.login-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 15px; color: var(--ink); background: transparent; font-size: 13px; }
.login-field input::placeholder { color: #a2aaa6; }
.password-toggle { display: grid; place-items: center; width: 52px; height: 100%; border: 0; cursor: pointer; color: #78847e; background: transparent; }
.password-toggle svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-closed, .password-toggle.showing .eye-open { display: none; }
.password-toggle.showing .eye-closed { display: block; }
.field-error { display: none; margin: -15px 0 20px; color: #a43e37; font-size: 10px; }
.field-error.visible { display: block; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 28px; }
.login-options a { color: #2a8050; font-size: 11px; font-weight: 650; }
.remember { display: flex; align-items: center; gap: 9px; color: #69736e; cursor: pointer; font-size: 11px; }
.remember input { position: absolute; opacity: 0; pointer-events: none; }
.remember span { position: relative; width: 16px; height: 16px; border: 1px solid rgba(8,18,15,.25); background: white; }
.remember input:focus-visible + span { outline: 2px solid #2ab662; outline-offset: 2px; }
.remember input:checked + span { border-color: #259b57; background: #259b57; }
.remember input:checked + span::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; height: 57px; border: 0; cursor: pointer; color: #061a15; background: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .02em; transition: background .2s, transform .2s; }
.login-submit:hover { background: #72ee9e; transform: translateY(-2px); }
.login-submit svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-message { display: none; margin-top: 16px; padding: 12px 14px; border-left: 2px solid #2ab662; color: #4e5d56; background: rgba(42,182,98,.08); font-size: 11px; line-height: 1.55; }
.login-message.visible { display: block; }
.login-support { display: flex; justify-content: space-between; margin-top: 35px; padding-top: 25px; border-top: 1px solid rgba(8,18,15,.12); color: #8b948f; font-size: 10px; }
.login-support a { color: #43504a; font-weight: 650; }
.login-support b { margin-left: 5px; color: #279955; }
.login-copyright { position: absolute; bottom: 28px; margin: 0; color: #a0a8a4; font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }

@media (max-width: 960px) {
  .login-layout { grid-template-columns: minmax(320px, .75fr) 1.25fr; }
  .showcase-copy h1 { font-size: 50px; }
}

@media (max-width: 760px) {
  .login-layout { display: block; }
  .login-showcase { min-height: 245px; padding: 30px 25px; }
  .login-art { background-position: 70% 50%; }
  .login-overlay { background: linear-gradient(90deg, rgba(2,17,22,.95), rgba(2,17,22,.45)), linear-gradient(0deg, rgba(2,18,16,.5), transparent); }
  .showcase-copy { margin: auto 0 5px; }
  .showcase-copy .eyebrow, .showcase-copy > p:last-child, .showcase-security { display: none; }
  .showcase-copy h1 { font-size: 36px; }
  .login-panel { display: block; min-height: calc(100svh - 245px); padding: 70px 24px 65px; }
  .back-link { top: 25px; right: 24px; }
  .login-box { margin-inline: auto; }
  .login-heading { margin-bottom: 32px; }
  .login-heading h2 { font-size: 38px; }
  .login-copyright { position: static; margin: 45px auto 0; text-align: center; }
}

@media (max-width: 430px) {
  .login-showcase { min-height: 210px; }
  .login-panel { min-height: calc(100svh - 210px); }
  .login-options, .login-support { align-items: flex-start; gap: 14px; }
  .login-support { flex-direction: column; }
  .access-system { padding: 17px; }
  .access-icon { width: 46px; height: 46px; }
}
