/* Status dashboard and login styles */

:root {
  --bg-0: #08171a;
  --bg-1: #0f2326;
  --card: rgba(254, 255, 244, 0.92);
  --card-border: rgba(0, 0, 0, 0.07);
  --text: #17363b;
  --muted: #4f676a;
  --accent-a: #0b8e91;
  --accent-b: #e9b949;
  --danger: #b1232f;
  --success: #0a7a4a;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.5 "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 900px at 10% 0%, rgba(11, 142, 145, 0.35), transparent 60%),
    radial-gradient(900px 700px at 90% 20%, rgba(233, 185, 73, 0.23), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
}

.card {
  width: min(760px, 100%);
  padding: 34px 30px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #10363a;
  background: linear-gradient(90deg, rgba(233, 185, 73, 0.75), rgba(11, 142, 145, 0.45));
  border: 1px solid rgba(0, 0, 0, 0.14);
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--muted);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.35);
}

.link:hover {
  border-bottom-color: rgba(0, 0, 0, 0.75);
}

.footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.kbd {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.06);
}

.muted {
  color: var(--muted);
}

.hint {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.login-form label {
  font-weight: 700;
  font-size: 14px;
}

.login-form input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.btn {
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: #13353a;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(233, 185, 73, 0.92), rgba(11, 142, 145, 0.74));
}

.btn:hover {
  filter: brightness(0.98);
}

.btn-muted {
  background: rgba(0, 0, 0, 0.06);
}

.page-status {
  align-items: start;
}

.card-status {
  margin: 24px 0;
}

.status-meta {
  margin-bottom: 14px;
}

.status-grid {
  display: grid;
  gap: 12px;
}

.status-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.status-dot {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.status-dot.up {
  background: var(--success);
}

.status-dot.down {
  background: var(--danger);
}

.status-title {
  margin: 0;
  font-size: 18px;
}

.status-details {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.build-version {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    transform: translateY(0);
    animation: rise 500ms ease-out;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

  .footer {
    flex-wrap: wrap;
  }
}
