html, body { min-height: 100%; }
body { margin: 0; background: #0a2242; }

.login-screen {
  min-height: 100vh; display: grid; place-items: center; padding: 38px 20px;
  background:
    radial-gradient(circle at 82% 86%, rgba(94, 148, 207, .72), transparent 36%),
    linear-gradient(118deg, #091f3c 0%, #103566 53%, #275c99 100%);
}
.login-shell {
  width: min(600px, 100%); border-radius: 28px; background: rgba(255,255,255,.97);
  box-shadow: 0 30px 80px rgba(2, 16, 39, .36); overflow: hidden;
}
.login-form-panel { padding: 44px 56px 30px; }
.login-logo { display: block; width: min(245px, 66%); max-height: 150px; object-fit: contain; margin: 0 auto 20px; }
.login-form-header { text-align: center; }
.login-eyebrow { display: block; margin-bottom: 12px; color: #225ba5; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.login-form-header h1 { margin: 0; color: #071d3b; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
.login-form-header p { max-width: 360px; margin: 18px auto 34px; color: #6d7f9c; font-size: 15px; line-height: 1.55; }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-field { display: flex; flex-direction: column; gap: 7px; }
.login-field label { color: #092347; font-size: 13px; font-weight: 800; }
.login-input-wrap { position: relative; display: flex; align-items: center; }
.login-field-icon { position: absolute; left: 18px; z-index: 1; color: #3970b7; font-size: 18px; }
.login-input-wrap input {
  width: 100%; height: 64px; padding: 0 86px 0 54px; border: 1px solid #c8d7ea; border-radius: 13px;
  color: #102b50; background: #f8fafd; font-family: inherit; font-size: 16px;
}
.login-input-wrap input::placeholder { color: #91a3bf; }
.login-input-wrap input:focus { outline: none; border-color: #2d69b3; box-shadow: 0 0 0 4px rgba(45,105,179,.13); }
.login-password-toggle { position: absolute; right: 13px; padding: 8px; border: 0; border-radius: 7px; color: #225ba5; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.login-password-toggle:hover { background: #e9f0f9; }
.login-error { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid #efbbb6; border-radius: 8px; color: #ad3027; background: #fff0ee; font-size: 12.5px; }
.login-error.d-none { display: none; }
.login-submit {
  height: 62px; display: flex; align-items: center; justify-content: center; margin-top: 18px; border: 0; border-radius: 13px;
  color: #fff; background: linear-gradient(90deg, #17457f, #2f70bb); box-shadow: 0 17px 34px rgba(31,83,146,.23);
  font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.login-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.login-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.login-footnote { margin: 28px 0 0; color: #91a3bf; text-align: center; font-size: 11.5px; }
.spinner-border { width: 15px; height: 15px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: login-spin .75s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .login-screen { padding: 18px 12px; }
  .login-shell { border-radius: 20px; }
  .login-form-panel { padding: 34px 24px 25px; }
  .login-logo { width: min(220px, 72%); }
  .login-form-header p { margin-bottom: 26px; }
  .login-input-wrap input { height: 56px; font-size: 15px; }
  .login-submit { height: 56px; }
}
