/* JARVIS Foundation Login — CSS Variables aligned with main UI */
:root {
  --bg:         #0a0e18;
  --bg-card:    #0d1424;
  --bg-input:   #111827;
  --gold-bright:#d4a843;
  --gold-dim:   #a07830;
  --gold-glow:  rgba(212, 168, 67, 0.18);
  --text:       #e8e8f0;
  --text-muted: #6b7280;
  --border:     rgba(212, 168, 67, 0.15);
  --error:      #ef4444;
  --radius:     6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, #0f1830 0%, var(--bg) 70%);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Orb ──────────────────────────────────────────────────────────────── */
.orb-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%,
    #f0c060 0%,
    var(--gold-bright) 35%,
    var(--gold-dim) 70%,
    #3a2a10 100%
  );
  box-shadow:
    0 0 24px var(--gold-glow),
    0 0 8px rgba(212, 168, 67, 0.3),
    inset 0 1px 2px rgba(255,255,255,0.2);
}

/* ── Card ─────────────────────────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: 360px;
  padding: 44px 36px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 60px var(--gold-glow);
}

/* ── Heading ──────────────────────────────────────────────────────────── */
.wordmark {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  color: var(--gold-bright);
  text-shadow: 0 0 20px var(--gold-glow);
  margin-bottom: 36px;
}

/* ── Form ─────────────────────────────────────────────────────────────── */
form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

/* ── Submit ───────────────────────────────────────────────────────────── */
.btn-submit {
  margin-top: 8px;
  width: 100%;
  padding: 11px;
  background: var(--gold-bright);
  color: #0a0e18;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-submit:hover:not(:disabled) {
  background: #e0b84f;
  box-shadow: 0 0 16px var(--gold-glow);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Spinner ──────────────────────────────────────────────────────────── */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10,14,24,0.3);
  border-top-color: #0a0e18;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading .btn-label { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error ────────────────────────────────────────────────────────────── */
#loginError {
  min-height: 18px;
  font-size: 12px;
  color: var(--error);
  text-align: center;
  margin-top: 4px;
}
