:root {
  --navy-950: #071a35;
  --navy-900: #0b2850;
  --navy-800: #123d76;
  --blue-600: #2e66ad;
  --text: #102a51;
  --muted: #70819a;
  --line: #d7e1ee;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 82% 82%, #4776ad 0, transparent 34%), linear-gradient(135deg, var(--navy-950), #153f79 72%, #315f98);
}
button, input { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
}

.login-card {
  width: min(480px, 100%);
  padding: 38px 44px 30px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 75px rgba(3,18,39,.32);
}

.login-header { text-align: center; }
.brand-logo {
  display: block;
  width: 168px;
  max-height: 130px;
  margin: 0 auto 22px;
  object-fit: contain;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.login-card h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.form-intro {
  max-width: 330px;
  margin: 13px auto 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.form-fields { display: grid; }
.login-card label {
  margin: 15px 0 7px;
  color: #29415f;
  font-size: 12px;
  font-weight: 750;
}
.input-field { position: relative; display: flex; align-items: center; }
.input-field > span {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: #6c83a2;
  font-size: 17px;
  pointer-events: none;
}
.input-field input {
  width: 100%;
  height: 52px;
  padding: 0 15px 0 44px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbfe;
  transition: .18s ease;
}
.input-field input::placeholder { color: #93a1b4; }
.input-field input:focus {
  outline: 3px solid rgba(46,102,173,.13);
  border-color: var(--blue-600);
  background: #fff;
}
.password-field input { padding-right: 76px; }
.password-field button {
  position: absolute;
  right: 7px;
  height: 38px;
  padding: 0 9px;
  border: 0;
  color: var(--blue-600);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.login-message { min-height: 19px; margin: 12px 0 4px; color: #a33545; font-size: 12px; text-align: center; }
.login-button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(100deg, var(--navy-800), var(--blue-600));
  cursor: pointer;
  font-weight: 750;
  box-shadow: 0 13px 27px rgba(20,63,117,.22);
  transition: .18s ease;
}
.login-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(20,63,117,.29); }
.login-button:disabled { opacity: .65; cursor: wait; }
.login-card > small { display: block; margin-top: 20px; color: #8a98aa; font-size: 11px; text-align: center; }

@media (max-width: 540px) {
  .login-shell { padding: 16px; }
  .login-card { padding: 30px 24px 25px; border-radius: 18px; }
  .brand-logo { width: 145px; margin-bottom: 18px; }
  .form-intro { margin-bottom: 22px; }
}
