:root {
  color-scheme: light;
  --ink: #17283d;
  --muted: #6d7d8e;
  --navy: #10243b;
  --blue: #1769aa;
  --teal: #40c5b4;
  --gold: #f2bf61;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: #f4f7fa; color: var(--ink); font-family: 'Segoe UI', Arial, sans-serif; }
button, input { font: inherit; }
.page-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); min-height: 100vh; }

.brand-panel {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100vh; overflow: hidden; padding: clamp(28px, 5vw, 68px) clamp(28px, 6.2vw, 92px);
  color: white; background: linear-gradient(135deg, #0d2035 0%, #143959 54%, #0a4c67 100%);
}
.brand-panel::before { position: absolute; z-index: -2; inset: 0; content: ''; background: url('login-bg.svg') center/cover no-repeat; opacity: .96; }
.brand-panel::after { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, rgba(9, 25, 43, .28), transparent 86%); }
.brand-panel__texture { position: absolute; z-index: -1; right: -110px; bottom: -205px; width: 470px; height: 470px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 78px rgba(255,255,255,.025); }
.agency-lockup { display: flex; align-items: center; gap: 17px; }
.agency-lockup__crest { display: block; width: 55px; height: 69px; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,.25)); }
.agency-lockup__eyebrow { margin: 0 0 5px; color: rgba(255,255,255,.66); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.agency-lockup__name { margin: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.45; }
.brand-copy { width: min(100%, 600px); margin: auto 0; padding: 54px 0 62px; }
.app-logo { display: block; width: min(330px, 82%); height: auto; margin: 0 0 29px -8px; }
.brand-copy__description { max-width: 560px; margin: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(18px, 2.1vw, 25px); font-weight: 600; line-height: 1.55; letter-spacing: -.025em; }
.brand-copy__detail { max-width: 480px; margin: 17px 0 0; color: rgba(238,247,252,.77); font-size: 15px; line-height: 1.8; }
.brand-panel__footer { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .015em; }
.footer-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(64,197,180,.14); }

.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 40px clamp(24px, 5.3vw, 76px) 24px; background: radial-gradient(ellipse at 100% 0%, #eaf4fa 0, #f8fafc 40%, #f4f7fa 100%); }
.login-card { width: min(100%, 420px); padding: 10px 0 20px; }
.mobile-agency { display: none; }
.login-card__app-icon { display: block; width: 54px; height: 54px; margin: 0 0 28px; border-radius: 16px; box-shadow: 0 7px 18px rgba(20,74,113,.16); }
.login-card__eyebrow { margin: 0 0 9px; color: #2c8b9b; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.login-card h1 { margin: 0; color: #162b42; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(27px, 3vw, 34px); font-weight: 800; letter-spacing: -.045em; line-height: 1.2; }
.login-card__intro { margin: 12px 0 32px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.login-form { display: grid; gap: 21px; }
.form-group label { display: block; margin: 0 0 9px; color: #34475b; font-size: 13px; font-weight: 700; }
.input-wrap { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; left: 15px; width: 19px; height: 19px; fill: none; stroke: #91a0af; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; pointer-events: none; }
.input-wrap input { width: 100%; height: 53px; padding: 0 48px; border: 1px solid #dce4eb; border-radius: 12px; outline: none; background: rgba(255,255,255,.86); color: #1a2d42; font-size: 14px; transition: border-color .18s, box-shadow .18s, background .18s; }
.input-wrap input::placeholder { color: #a0acb8; }
.input-wrap input:focus { border-color: #48a8b8; background: #fff; box-shadow: 0 0 0 4px rgba(64,171,184,.12); }
.password-toggle { position: absolute; right: 10px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #8191a0; cursor: pointer; }
.password-toggle:hover { background: #edf3f6; color: #315c77; }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 53px; margin-top: 6px; border: 0; border-radius: 12px; background: linear-gradient(105deg, #1769aa, #168b9b); box-shadow: 0 9px 18px rgba(22,105,154,.19); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .18s, box-shadow .18s, filter .18s; }
.submit-button span { font-size: 19px; line-height: 0; transition: transform .18s; }
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(22,105,154,.25); filter: saturate(1.12); }
.submit-button:hover span { transform: translateX(3px); }
.submit-button:focus-visible, .password-toggle:focus-visible { outline: 3px solid rgba(32,139,168,.3); outline-offset: 3px; }
.login-card__security { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: #8b98a5; font-size: 11px; }
.login-card__security span { color: #35a58f; font-size: 9px; }
.login-panel__footer { margin-top: auto; color: #9aa6b1; font-size: 11px; text-align: center; }

@media (max-width: 900px) {
  .page-shell { grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr); }
  .brand-panel { padding-right: 38px; padding-left: 38px; }
}
@media (max-width: 700px) {
  .page-shell { display: block; min-height: 100vh; }
  .brand-panel { display: none; }
  .login-panel { min-height: 100vh; padding: 26px 24px 18px; }
  .login-card { width: min(100%, 420px); padding: 0; }
  .mobile-agency { display: flex; align-items: center; gap: 12px; margin: 0 0 47px; color: #1b344c; font-size: 12px; font-weight: 700; line-height: 1.45; }
  .mobile-agency img { width: 39px; height: 49px; object-fit: contain; }
  .login-card__app-icon { margin-bottom: 23px; }
  .login-card__intro { margin-bottom: 27px; }
  .login-panel__footer { margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
