:root {
  --bg: #0a1310;
  --bg-alt: #0f1a16;
  --surface: #13221c;
  --surface-2: #182a22;
  --green: #00c896;
  --green-light: #5eebc0;
  --cream: #eaf5f0;
  --muted: #8fa89e;
  --border: #1f3a30;
  --danger: #f0654e;
  --danger-bg: rgba(240, 101, 78, 0.1);
  --radius: 16px;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Status banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--danger-bg);
  border-bottom: 1px solid rgba(240, 101, 78, 0.35);
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.status-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
  animation: pulse 1.4s ease-in-out infinite;
}
.status-banner__meta {
  color: rgba(240, 101, 78, 0.75);
  font-weight: 500;
  font-size: 0.8rem;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.status-banner.is-ok {
  background: rgba(0, 200, 150, 0.1);
  border-bottom-color: rgba(0, 200, 150, 0.35);
  color: var(--green-light);
}
.status-banner.is-ok .status-banner__dot { background: var(--green-light); animation: none; }
.status-banner.is-ok .status-banner__meta { color: rgba(94, 235, 192, 0.75); }

/* Screen */
.screen {
  min-height: calc(100vh - 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 200, 150, 0.12), transparent 60%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
}

.login-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.logo__mark { color: var(--green); font-size: 1.3rem; }
.login-card__brand strong { color: var(--green-light); font-weight: 700; }

.login-card__subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 28px;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.form-row input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input:focus { outline: none; border-color: var(--green); }

.login-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  margin: -2px 0 4px;
}
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--green); }
.login-form__forgot { color: var(--muted); transition: color 0.15s ease; }
.login-form__forgot:hover { color: var(--green-light); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #06231a;
  box-shadow: 0 10px 24px -10px rgba(0, 200, 150, 0.5);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn--full { width: 100%; }

.form-error {
  background: var(--danger-bg);
  border: 1px solid rgba(240, 101, 78, 0.3);
  color: var(--danger);
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
  text-align: center;
}
.form-error strong { display: block; margin-bottom: 2px; }

.login-card__footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  margin: 24px 0 0;
}

@media (max-width: 420px) {
  .login-card { padding: 30px 22px 24px; }
}
