.login-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 48px);
  background:
    radial-gradient(ellipse at 10% 0%, #2e5279, transparent 55%),
    radial-gradient(ellipse at 95% 100%, #214762, transparent 52%),
    #13243b;
}

.login-layout {
  width: min(100%, 460px);
  display: grid;
  gap: 21px;
  padding: clamp(24px, 7vw, 42px);
  border: 1px solid #e3e8ef;
  border-top: 3px solid #d4a950;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 66px #0a192875;
}

.login-header { text-align: center; }
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--navy-800);
  font: 700 17px var(--font-brand);
}
.login-brand img { border-radius: 12px; object-fit: cover; }
.login-header h1 { font: 700 clamp(30px, 6vw, 38px)/1.15 var(--font-brand); }
.login-header p { margin-top: 6px; color: var(--text-2); }
.login-methods { display: grid; gap: 7px; }
.login-layout .login-google,
.login-layout .login-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  height: auto;
  gap: 10px;
  font-weight: 600;
}
.login-layout .login-google {
  border-color: #747775;
  background: #fff;
  color: #1f1f1f;
  font: 500 14px/20px "Google Sans", system-ui, sans-serif;
}
.login-layout .login-google:hover:not(:disabled) { background: #f5f8fc; }
.login-note { color: var(--text-2); font-size: var(--fs-13); text-align: center; }
.login-retry {
  justify-self: center;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--navy-700);
  text-decoration: underline;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: var(--fs-13);
}
.login-divider::before, .login-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}
.login-layout .login-form {
  max-width: none;
  border: 0;
  padding: 0;
  gap: 13px;
  box-shadow: none;
}
.login-layout .field { font-weight: 600; color: var(--text-2); }
.login-layout .field input { height: 44px; padding: 0 12px; font-weight: 400; min-width: 0; }
.password-field { position: relative; }
.password-field input { width: 100%; }
.login-layout .password-field input { padding-inline-end: 63px; }
.password-field button {
  position: absolute;
  inset-inline-end: 5px;
  top: 5px;
  bottom: 5px;
  min-width: 52px;
  border: 0;
  border-radius: 6px;
  background: #f0f3f8;
  color: var(--navy-700);
}
.login-layout .err { color: #a6302b; min-height: 0; overflow-wrap: anywhere; }
.login-layout .err:empty { display: none; }
.login-layout .login-help { text-align: center; }
.login-layout #google-device-actions {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f7f9fc;
  overflow-wrap: anywhere;
}
.login-device-buttons, .login-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.login-device-buttons a { text-decoration: none; }
.login-links { justify-content: center; font-size: var(--fs-13); }
.login-links a { color: var(--navy-700); text-underline-offset: 3px; }
.login-layout :is(button, a):focus-visible { outline: 2px solid #305180; outline-offset: 3px; }
