/* ============================================================
   entrypointzone-gateway — styles.css
   Dark, mobile-first, system fonts only — no external deps
   ============================================================ */

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

:root {
  --bg:          #0d1117;
  --card-bg:     #161b22;
  --border:      #30363d;
  --text-main:   #e6edf3;
  --text-muted:  #8b949e;
  --accent:      #2f81f7;
  --accent-hover:#58a6ff;
  --btn-text:    #ffffff;
  --btn-disabled:#21262d;
  --btn-dis-txt: #484f58;
  --warn:        #e3b341;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
}

html, body {
  height: 100%;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem 1rem;
  gap: 1.25rem;
}

/* ── Card ── */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadein 0.35s ease;
}

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

.card--error { border-color: #6e3027; background: #1a0f0f; }

.hidden { display: none !important; }

/* ── Icon ── */
.icon {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.icon--warn { color: var(--warn); }

/* ── Typography ── */
.title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

/* ── Button ── */
.btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--btn-text);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
  letter-spacing: 0.01em;
  /* Minimum touch target */
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  background: var(--btn-disabled);
  color: var(--btn-dis-txt);
  cursor: not-allowed;
}

/* ── Status note ── */
.note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

/* ── Footer ── */
.footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Responsive ── */
@media (min-width: 480px) {
  .card { padding: 2.5rem 2.25rem; }
  .title { font-size: 1.5rem; }
}
