:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef3f9;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
a { color: inherit; }

.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.08fr) minmax(400px, .92fr); }
.brand-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 48px clamp(36px, 6vw, 88px); color: white; background: #073f98; }
.brand-panel::after { position: absolute; right: -18%; bottom: -34%; width: 720px; height: 720px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; content: ""; }
.logo { position: relative; z-index: 1; width: 168px; height: auto; }
.brand-copy { position: relative; z-index: 1; max-width: 620px; margin-top: clamp(72px, 12vh, 150px); }
.eyebrow { margin: 0 0 16px; color: #83e1df; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 590px; margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.03; letter-spacing: 0; text-wrap: balance; }
.brand-copy > p:last-child { max-width: 520px; margin: 24px 0 0; color: #d8e7fb; font-size: 18px; line-height: 1.65; }
.mail-preview { position: relative; z-index: 1; display: grid; grid-template-columns: 92px 160px 1fr; height: 180px; max-width: 620px; margin-top: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 10px 10px 0 0; background: white; box-shadow: 0 28px 70px rgba(0,20,60,.28); }
.preview-sidebar { padding: 20px 14px; background: #0b2d5f; }
.preview-sidebar i, .preview-list b { display: block; height: 8px; margin-bottom: 18px; border-radius: 8px; background: rgba(255,255,255,.28); }
.preview-list { padding: 18px 14px; background: #f2f5f9; }
.preview-list b { height: 24px; margin-bottom: 10px; background: #dce4ee; }
.preview-message { display: grid; place-items: center; }
.preview-message span { position: relative; width: 78px; height: 52px; border: 6px solid #d7e0eb; border-radius: 8px; }
.preview-message span::after { position: absolute; inset: 7px 10px; border-right: 5px solid #d7e0eb; border-bottom: 5px solid #d7e0eb; transform: rotate(45deg); content: ""; }

.login-panel { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: #f8fafc; }
.login-card { width: min(100%, 460px); padding: clamp(28px, 5vw, 48px); border: 1px solid #dce4ef; border-radius: 12px; background: white; box-shadow: 0 24px 64px rgba(15,35,65,.10); }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 24px; border-radius: 999px; background: #e9f8f5; padding: 7px 10px; color: #087b6f; font-size: 12px; font-weight: 700; }
.secure-badge span { width: 7px; height: 7px; border-radius: 50%; background: #13a892; }
h2 { margin: 0; color: #0f1c31; font-size: 30px; letter-spacing: 0; }
.intro { margin: 10px 0 28px; color: #607086; font-size: 15px; line-height: 1.55; }
form { display: grid; gap: 18px; }
label { color: #273750; font-size: 13px; font-weight: 650; }
input { width: 100%; height: 48px; margin-top: 7px; border: 1px solid #bdc9d9; border-radius: 8px; outline: none; padding: 0 14px; color: #111d30; background: white; transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: #0ea5a7; box-shadow: 0 0 0 3px rgba(14,165,167,.14); }
button { display: flex; height: 50px; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 8px; color: white; background: #073f98; font-weight: 750; cursor: pointer; transition: background .2s, transform .2s; }
button:hover { background: #0a54c5; transform: translateY(-1px); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(14,165,167,.35); outline-offset: 3px; }
.help-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; color: #174f9a; font-size: 13px; font-weight: 650; }
.privacy { margin: 28px 0 0; border-top: 1px solid #e5eaf1; padding-top: 18px; color: #748298; font-size: 12px; line-height: 1.55; }
footer { margin-top: 28px; color: #7d899b; font-size: 12px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: auto; padding: 28px 24px 36px; }
  .brand-copy { margin-top: 54px; }
  h1 { font-size: clamp(34px, 10vw, 50px); }
  .mail-preview { display: none; }
  .login-panel { min-height: auto; padding: 28px 16px 40px; }
  .login-card { padding: 28px 22px; }
}

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