:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #111111;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.7);
  --accent: #6be3ff;
  --success: #7ee3a6;
  --danger: #ff8c8c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Futura", "Gill Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page-login,
.page-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.shell {
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  margin: 0 0 16px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: rgba(107, 227, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(107, 227, 255, 0.2);
}

button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  background: rgba(107, 227, 255, 0.12);
  transform: translateY(-1px);
}

button.ghost {
  width: auto;
  padding: 8px 16px;
  font-size: 12px;
}

.notice {
  margin-top: 12px;
  font-size: 13px;
}

.notice.success {
  color: var(--success);
}

.notice.error {
  color: var(--danger);
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.link:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.status.pending {
  color: var(--accent);
  border-color: rgba(107, 227, 255, 0.5);
}

.status.approved {
  color: var(--success);
  border-color: rgba(126, 227, 166, 0.4);
}

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

.page-app {
  display: grid;
  place-items: center;
  background: #000;
}

.app-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-button {
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 28px;
  font-size: 22px;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.04);
}

.app-count {
  font-size: 15px;
  color: var(--muted);
}

.logout {
  position: fixed;
  top: 20px;
  right: 20px;
}

.page-landing {
  display: grid;
  place-items: center;
  padding: 72px 20px;
  text-align: center;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 70% 10%, rgba(107, 227, 255, 0.2), transparent 70%),
    radial-gradient(55% 55% at 20% 80%, rgba(107, 227, 255, 0.12), transparent 60%),
    #000;
}

.landing {
  width: min(960px, 100%);
}

.landing-card {
  display: grid;
  gap: 24px;
  place-items: center;
  padding: clamp(28px, 6vw, 48px);
  border-radius: 28px;
  background: rgba(8, 12, 18, 0.82);
  border: 1px solid rgba(107, 227, 255, 0.25);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  animation: landing-reveal 0.8s ease-out both;
}

.landing-title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(107, 227, 255, 0.35);
}

.landing-countdown {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
}

.countdown-item {
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(107, 227, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.countdown-number {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.countdown-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes landing-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-card {
    animation: none;
  }
}

@media (max-width: 700px) {
  .page-landing {
    padding: 56px 16px;
  }

  .landing-card {
    padding: 22px 16px;
    gap: 18px;
  }

  .landing-countdown {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .landing-title {
    font-size: clamp(2rem, 9vw, 3rem);
    letter-spacing: 0.12em;
  }

  .countdown-item {
    padding: 10px 8px;
  }

  .countdown-number {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .logout {
    position: static;
    margin-bottom: 12px;
  }
}
