:root {
  --ink: #101828;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #d0d5dd;
  --blue: #2563eb;
  --blue-dark: #1849a9;
  --blue-soft: #eff6ff;
  --red: #b42318;
  --red-soft: #fef3f2;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { color: var(--ink); background: #f5f7fa; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
.hidden { display: none !important; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .9fr) minmax(480px, 1.1fr); }
.login-brand { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 36px clamp(34px, 5vw, 76px); color: #fff; background: linear-gradient(145deg, #172b4d 0%, #102a56 50%, #123d85 100%); }
.login-brand::before { content: ""; position: absolute; width: 480px; height: 480px; right: -260px; bottom: -160px; border: 70px solid rgba(255,255,255,.035); border-radius: 50%; }
.login-brand::after { content: ""; position: absolute; width: 260px; height: 260px; left: -150px; top: 28%; border: 48px solid rgba(37,99,235,.18); border-radius: 50%; }
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(0,0,0,.18); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: #b9d2ff; font-size: 9px; }
.brand-copy { position: relative; z-index: 1; margin: auto 0 42px; }
.eyebrow { margin: 0 0 8px; color: #84adff; font-size: 10px; font-weight: 850; letter-spacing: 1.25px; }
.brand-copy h1 { margin: 0 0 18px; font-size: clamp(35px, 4.2vw, 59px); line-height: 1.04; letter-spacing: -2px; }
.brand-copy > p:last-child { max-width: 520px; margin: 0; color: #c6d8f7; font-size: 14px; line-height: 1.65; }
.security-list { position: relative; z-index: 1; display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: #dbe8ff; font-size: 11px; }
.security-list span { width: 19px; height: 19px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 50%; color: #b2ccff; background: rgba(255,255,255,.08); font-size: 9px; font-weight: 900; }

.login-panel { display: grid; place-items: center; align-content: center; padding: 40px 24px 22px; }
.login-card { width: min(430px, 100%); padding: 38px 40px; border: 1px solid #e4e7ec; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(16,24,40,.08); }
.mobile-brand { display: none; }
.login-card .eyebrow { color: var(--blue); }
.login-card h2 { margin: 0 0 7px; font-size: 27px; letter-spacing: -.7px; }
.login-subtitle { margin: 0 0 26px; color: var(--muted); font-size: 12px; line-height: 1.5; }
#loginForm { display: grid; gap: 16px; }
#loginForm label > span { display: block; margin-bottom: 6px; color: #344054; font-size: 10px; font-weight: 800; }
.input-wrap { height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: #84adff; box-shadow: 0 0 0 4px var(--blue-soft); }
.input-wrap i { width: 18px; color: var(--soft); font-size: 14px; font-style: normal; text-align: center; }
.input-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.input-wrap button { padding: 4px; border: 0; color: var(--blue); background: transparent; font-size: 9px; font-weight: 750; }
.login-button { min-height: 46px; margin-top: 4px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); box-shadow: 0 5px 12px rgba(37,99,235,.22); font-size: 11px; font-weight: 850; }
.login-button:hover { background: #1d4ed8; }
.login-button:disabled { opacity: .65; cursor: wait; }
.login-notice { margin: -5px 0 17px; padding: 10px 12px; border: 1px solid #fecdca; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 10px; line-height: 1.45; }
.login-notice.success { border-color: #abefc6; color: #067647; background: #ecfdf3; }
.login-help { margin: 20px 0 0; color: var(--soft); font-size: 9px; line-height: 1.5; text-align: center; }
.login-footer { margin: 24px 0 0; color: var(--soft); font-size: 9px; }

@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 24px 16px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; }
  .mobile-brand img { width: 38px; height: 38px; border-radius: 9px; }
  .mobile-brand strong { font-size: 13px; }
}

@media (max-width: 480px) {
  .login-card { padding: 28px 22px; border-radius: 15px; }
  .login-card h2 { font-size: 23px; }
}
