/* login.css -- styles for /login and the admin-pending preview card */
body.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(76,201,240,0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59,130,246,0.15), transparent 50%),
    var(--bg);
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-pane);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px 22px 18px;
  border: 1px solid #1e3a5f;
}

.auth-head {
  text-align: center;
  margin-bottom: 18px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.auth-head h1 {
  font-size: 22px;
  margin: 0;
  color: var(--accent);
}

.auth-tagline {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.signin-lede {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.provider-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.provider-loading {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0;
  font-style: italic;
}

.provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, transform 0.05s;
}

.provider-btn:hover:not(:disabled) {
  filter: brightness(0.95);
}

.provider-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.provider-btn:disabled,
.provider-btn.offline-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.provider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.provider-label {
  letter-spacing: 0.01em;
}

form label {
  display: block;
  margin-bottom: 12px;
}

form label span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

form label small {
  color: #6c7689;
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}

form input[type="text"],
form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background: #0a1d33;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
}

form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76,201,240,0.18);
}

form button.primary {
  width: 100%;
  background: var(--accent);
  color: #02233a;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 4px;
}

form button.primary:disabled {
  opacity: 0.55;
  cursor: progress;
}

.hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.hint em {
  color: var(--accent);
  font-style: normal;
}

.msg {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  min-height: 0;
  display: none;
}

/* Respect the HTML `hidden` attribute even when a .msg.* subclass
   would otherwise set display: block. */
[hidden] {
  display: none !important;
}

.msg.ok {
  display: block;
  background: rgba(92,184,92,0.15);
  border: 1px solid rgba(92,184,92,0.35);
  color: #b3e3b3;
}

.msg.warn {
  display: block;
  background: rgba(240,173,78,0.15);
  border: 1px solid rgba(240,173,78,0.35);
  color: #f8d699;
}

.msg.err {
  display: block;
  background: rgba(217,83,79,0.15);
  border: 1px solid rgba(217,83,79,0.35);
  color: #f1bcbb;
}

.auth-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #1e3a5f;
}

.auth-foot p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-foot em {
  color: var(--accent);
  font-style: normal;
}
