:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-2: #111923;
  --border: #2d3a4d;
  --text: #e8eef4;
  --muted: #8fa3b8;
  --accent: #3d9aed;
  --negative: #f87171;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 25, 0.76), rgba(15, 20, 25, 0.94)),
    radial-gradient(circle at 50% 20%, rgba(61, 154, 237, 0.16), transparent 36%);
  z-index: 1;
}

.modal-panel {
  position: relative;
  z-index: 2;
  width: min(92vw, 420px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.modal-header {
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
}

h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0;
}

.modal-body {
  padding: 0.85rem 1rem 1rem;
}

.auth-note {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
}

input {
  width: 100%;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
}

input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(61, 154, 237, 0.22);
  outline-offset: 1px;
}

.auth-error {
  min-height: 1.15rem;
  margin: 0.1rem 0 0.8rem;
  color: var(--negative);
  font-size: 0.8rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

button {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.45rem 1rem;
  min-height: 34px;
  font-weight: 650;
  cursor: pointer;
  font-size: 0.86rem;
}

button:hover:not(:disabled) {
  filter: brightness(1.08);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}
