:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  color: #192b45;
  background: #f5f7fb;
  --ink-muted: #4d5f75;
  --accent: #1e56bc;
  --line: #c7d3e1;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.login-layout { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(290px, 0.84fr) 1.16fr; }
.brand-panel {
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  color: #f9fbff; padding: clamp(32px, 7vw, 108px);
  background: radial-gradient(ellipse at 100% 2%, #234579 0%, transparent 69%), #111f35;
}
.brand, .mobile-brand { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 730; }
.brand-icon { position: relative; width: 34px; height: 34px; flex: none; background: #3472e8; border-radius: 9px; }
.brand-icon::before, .brand-icon::after { position: absolute; content: ""; width: 15px; height: 6px; left: 8px; top: 8px; border: 1.5px solid #fff; border-radius: 2px; }
.brand-icon::after { top: 17px; }
.brand-panel p { margin: 0; color: #e0ecff; font-size: clamp(1.68rem, 3.2vw, 3.1rem); font-weight: 680; line-height: 1.14; letter-spacing: -0.035em; }
.login-panel { display: grid; align-items: center; justify-items: center; min-width: 0; padding: 40px 24px; }
.login-card { width: min(100%, 450px); background: #fff; border: 1px solid #dbe4ef; border-radius: 20px; padding: clamp(25px, 4vw, 44px); box-shadow: 0 18px 45px #162c4c0c; }
.mobile-brand { display: none; }
.form-heading { margin-bottom: 26px; }
h1 { margin: 0 0 9px; font-size: clamp(1.7rem, 3vw, 2.15rem); line-height: 1.16; letter-spacing: -.036em; }
p { line-height: 1.55; }
.form-heading p, .hint { margin: 0; color: var(--ink-muted); }
form { display: grid; gap: 10px; }
label { font-weight: 650; font-size: .875rem; }
input, button { font: inherit; }
input { width: 100%; min-width: 0; height: 48px; padding: 10px 13px; border: 1px solid var(--line); background: white; color: inherit; border-radius: 9px; }
input::placeholder { color: #687990; }
input.otp { letter-spacing: .16em; font-variant-numeric: tabular-nums; font-weight: 700; }
input.otp::placeholder { font-size: .95rem; letter-spacing: normal; font-weight: 400; }
input[aria-invalid="true"] { border-color: #ac303f; }
.hint { font-size: .82rem; }
button { cursor: pointer; }
.primary { margin-top: 7px; min-height: 48px; background: var(--accent); color: white; border: 1px solid transparent; border-radius: 9px; font-weight: 650; padding: 10px 15px; }
.primary:hover:enabled { background: #184994; }
.primary:disabled { background: #4367a3; cursor: wait; }
.secondary-actions { display: flex; justify-content: space-between; gap: 8px; }
.link { background: transparent; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: .86rem; font-weight: 650; min-height: 38px; padding: 6px 0; }
.link:disabled { color: #556982; text-decoration: none; cursor: default; }
:focus-visible { outline: 2px solid #235fc8; outline-offset: 3px; }
.feedback { margin: 16px 0 0; border-radius: 8px; background: #eef4ff; color: #234573; padding: 10px 12px; font-size: .88rem; }
.feedback.error { background: #fff1f2; color: #932233; }
@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .mobile-brand { display: flex; margin-bottom: 30px; }
  .login-panel { padding: 24px 16px; }
}
@media (max-width: 410px) {
  .login-card { border-radius: 15px; }
  .login-panel { align-items: start; padding-top: min(10vh, 52px); }
}
