:root {
  --login-blue: #0b68c8;
  --login-blue-dark: #074f9c;
  --login-ink: #10233f;
  --login-muted: #687b95;
  --login-line: #dce6f2;
  --login-surface: #ffffff;
  --login-soft: #f4f8fd;
  --login-yellow: #f7b500;
}

html, body { min-height: 100%; }
body {
  min-height: 100vh;
  background: #edf4fb;
  color: var(--login-ink);
}

.login-shell {
  min-height: 100vh;
  grid-template-columns: minmax(500px, 1.08fr) minmax(420px, .92fr);
  background: linear-gradient(135deg, #f7fbff 0%, #edf4fb 55%, #eaf2fb 100%);
}

.brand-panel {
  min-height: 100vh;
  align-items: center;
  padding: clamp(42px, 6vw, 92px);
  background:
    radial-gradient(circle at 78% 12%, rgba(247,181,0,.24) 0 8%, transparent 28%),
    radial-gradient(circle at 5% 92%, rgba(75,155,235,.28), transparent 34%),
    linear-gradient(145deg, #07559f 0%, #0b6bca 54%, #1b86df 100%);
  isolation: isolate;
}

.brand-panel::before {
  width: min(52vw, 720px);
  height: min(52vw, 720px);
  top: -35%;
  right: -22%;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 0 56px rgba(255,255,255,.035), 0 0 0 112px rgba(255,255,255,.025);
}

.brand-panel::after {
  width: 340px;
  height: 340px;
  top: auto;
  bottom: -190px;
  right: 9%;
  border-color: rgba(247,181,0,.24);
  background: rgba(247,181,0,.08);
}

.brand-content { width: min(100%, 700px); max-width: 700px; }
.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  margin-bottom: 54px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 50px rgba(0,36,80,.22);
}
.brand-logo-shell img { display: block; width: clamp(190px, 19vw, 255px); height: auto; }
.brand-kicker {
  margin: 0 0 14px !important;
  color: #dbeeff !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand-content h1 {
  max-width: 660px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
}
.brand-copy { max-width: 610px !important; color: rgba(255,255,255,.84) !important; font-size: 17px !important; }
.brand-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}
.brand-feature {
  min-height: 108px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.brand-feature strong { display: block; margin-bottom: 6px; color: #fff; font-size: 14px; }
.brand-feature span { color: rgba(255,255,255,.70); font-size: 12px; line-height: 1.45; }
.brand-feature-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 13px;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 15px;
}

.login-panel {
  position: relative;
  place-items: center;
  padding: clamp(28px, 5vw, 72px);
  background: transparent;
  backdrop-filter: none;
}
.login-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 95% 6%, rgba(11,104,200,.08), transparent 26%);
  pointer-events: none;
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(209,223,238,.92) !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(23,58,96,.14) !important;
}
.login-card header { margin-bottom: 28px; }
.mobile-brand { display: none; align-items: center; margin-bottom: 28px; }
.mobile-brand img { width: 184px; height: auto; }
.eyebrow { margin-bottom: 10px; color: var(--login-blue); font-size: 11px; letter-spacing: .17em; }
.login-card h2 { margin-bottom: 10px; color: var(--login-ink); font-size: 34px; }
.login-card header p:last-child { color: var(--login-muted); font-size: 14px; }
.error-box {
  margin-bottom: 20px;
  padding: 13px 14px;
  border-radius: 13px;
  border-color: #f3c5cb;
  background: #fff1f3;
  font-size: 13px;
}
.field { margin-bottom: 18px; }
.field span { margin-bottom: 8px; color: #304761; font-size: 12px; font-weight: 750; }
.field input {
  min-height: 54px;
  border-color: var(--login-line);
  border-radius: 14px !important;
  background: #f8fbff !important;
  padding: 0 16px;
  font-size: 15px;
}
.field input:hover { border-color: #c3d3e5; }
.field input:focus {
  border-color: #5a9de0;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(11,104,200,.11);
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 82px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--login-blue);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}
.password-toggle:hover { background: #eaf3fd; }
.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  margin-top: 6px;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--login-blue), #2583dc) !important;
  box-shadow: 0 14px 28px rgba(11,104,200,.24);
  font-size: 14px;
}
.submit-button:hover { background: linear-gradient(135deg, var(--login-blue-dark), #1474ce) !important; transform: translateY(-1px); }
.submit-button-arrow { font-size: 18px; line-height: 1; transition: transform .16s ease; }
.submit-button:hover .submit-button-arrow { transform: translateX(3px); }
.security-note {
  align-items: flex-start;
  gap: 11px;
  margin-top: 22px;
  padding: 14px;
  border: 0;
  border-radius: 13px;
  background: #f3f8fd;
  color: var(--login-muted);
  font-size: 11px;
}
.security-badge {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #e4f1ff;
  color: var(--login-blue);
}
.security-note strong { display: block; margin-bottom: 2px; color: #2b4764; font-size: 12px; }
.login-footer { margin: 22px 0 0; color: #91a0b2; font-size: 10px; text-align: center; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: minmax(380px,.9fr) minmax(400px,1.1fr); }
  .brand-panel { padding: 44px; }
  .brand-content h1 { font-size: 44px; }
  .brand-feature-grid { grid-template-columns: 1fr; }
  .brand-feature { min-height: auto; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; }
  .brand-feature-icon { grid-row: span 2; margin: 0; }
}

@media (max-width: 800px) {
  body { background: linear-gradient(160deg,#edf6ff,#f8fbff 48%,#eef4fb); }
  .login-shell { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
  .brand-panel { display: none; }
  .login-panel { place-items: center; min-height: 100dvh; padding: 24px; }
  .login-card { width: min(100%, 470px); }
  .mobile-brand { display: flex; }
}

@media (max-width: 480px) {
  .login-panel { padding: 14px; }
  .login-card { padding: 28px 22px; border-radius: 22px !important; }
  .mobile-brand img { width: 164px; }
  .login-card h2 { font-size: 30px; }
  .field input, .submit-button { min-height: 52px; }
}

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