/* EieiBio Admin — Grok dark theme (matches main site) */

:root {
  --bg: #070708;
  --panel: rgba(18, 18, 20, 0.88);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f1ea;
  --text-muted: #9a958c;
  --text-dim: #6b675f;
  --accent: #f0a35e;
  --accent-soft: rgba(240, 163, 94, 0.18);
  --live: #3dd68c;
  --live-soft: rgba(61, 214, 140, 0.18);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.15);
  --blue: #5b9dff;
  --blue-soft: rgba(91, 157, 255, 0.18);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font), system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

@supports (height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(240, 163, 94, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(91, 157, 255, 0.06), transparent 50%),
    var(--bg);
}

.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 28px 26px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: in 0.55s var(--ease) both;
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(240, 163, 94, 0.45);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.lead {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  margin: 6px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.button:active {
  transform: none;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button.login,
.button.primary {
  background: linear-gradient(135deg, rgba(240, 163, 94, 0.22), rgba(240, 163, 94, 0.08));
  border-color: rgba(240, 163, 94, 0.35);
  color: #ffd7ad;
}

.button.login:hover,
.button.primary:hover {
  box-shadow: 0 10px 28px rgba(240, 163, 94, 0.12);
}

.button.logout {
  background: var(--danger-soft);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ffb0b0;
}

.button.secondary {
  background: var(--surface);
  color: var(--text-muted);
}

.button.success {
  background: var(--live-soft);
  border-color: rgba(61, 214, 140, 0.3);
  color: var(--live);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
}

input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input[type="password"]::placeholder {
  color: var(--text-dim);
}

input[type="password"]:focus {
  border-color: rgba(240, 163, 94, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.status-box {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.status-box .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.status-box .row:first-child {
  margin-top: 0;
}

.status-box .row:last-child {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.ok {
  background: var(--live-soft);
  color: var(--live);
  border: 1px solid rgba(61, 214, 140, 0.28);
}

.badge.bad {
  background: var(--danger-soft);
  color: #ffb0b0;
  border: 1px solid rgba(255, 107, 107, 0.28);
}

.badge.warn {
  background: rgba(240, 163, 94, 0.12);
  color: var(--accent);
  border: 1px solid rgba(240, 163, 94, 0.28);
}

.error {
  color: #ffb0b0;
  font-size: 0.875rem;
  margin: 0 0 12px;
  min-height: 1.2em;
}

.hidden {
  display: none !important;
}

.hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 18px 0 0;
  line-height: 1.45;
}

.foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
}

@media (max-width: 420px) {
  .panel {
    padding: 22px 16px 16px;
  }

  .button {
    width: calc(100% - 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
