body.auth-pending #app,
body.unauthenticated #app {
  display: none;
}

body.authenticated #authScreen {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(22, 163, 74, 0.18), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #102033 46%, #eff6f3 100%);
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 28px;
  padding: 34px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.32);
}

.auth-orb {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -60px;
  top: -70px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #2563eb);
  opacity: 0.2;
}

.auth-kicker {
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 32px;
  line-height: 1.05;
}

.auth-card p {
  margin: 0 0 24px;
  color: #475569;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  font-size: 15px;
  background: #fff;
}

.auth-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-form button {
  margin-top: 8px;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #166534, #2563eb);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(22, 101, 52, 0.24);
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-error {
  min-height: 20px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

.auth-note {
  margin-top: 16px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}