/* ============================================================
 *  Easy Tap In – Setup / pairing page styles
 * ============================================================ */

:root {
  --accent: #4ade80;
  --accent-hover: #3ecf72;
  --bg: #0a1a0f;
  --card-bg: #0f2416;
  --text: #e8f5ec;
  --muted: #7da88a;
  --red: #f87171;
  --yellow: #fbbf24;
  --border: rgba(74,222,128,.12);
}

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

body {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}

.page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

.pair-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 28px; max-width: 420px; width: 100%; text-align: center;
}

.header { margin-bottom: 28px; }
.brand { font-weight: 900; letter-spacing: 3px; color: var(--accent); font-size: 1.8rem; text-decoration: none; display: block; }
.brand:hover { text-decoration: none; opacity: .9; }
.subtitle { color: var(--muted); font-size: .95rem; margin-top: 4px; }

.code-input {
  display: block; width: 100%; background: var(--bg);
  border: 2px solid rgba(74,222,128,.25); border-radius: 12px;
  color: var(--accent); font-size: 2rem; font-weight: 900;
  letter-spacing: 8px; text-align: center; text-transform: uppercase;
  padding: 14px 16px; margin-bottom: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.code-input::placeholder { color: rgba(74,222,128,.2); letter-spacing: 4px; font-size: 1.1rem; font-weight: 400; }
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,222,128,.15); }

.btn-connect {
  display: block; width: 100%; background: var(--accent); color: var(--bg);
  border: none; border-radius: 10px; font-weight: 700; font-size: 1.05rem;
  padding: 14px; cursor: pointer; transition: background .2s;
}
.btn-connect:hover { background: var(--accent-hover); }
.btn-connect:disabled { background: rgba(74,222,128,.4); cursor: default; }

.pair-status { min-height: 28px; margin-top: 16px; font-size: .9rem; font-weight: 700; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.status-dot.online  { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.status-dot.offline { background: var(--red); }
.status-dot.checking { background: var(--yellow); animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.saved-device {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(74,222,128,.06); border: 1px solid rgba(74,222,128,.15);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; cursor: pointer; transition: background .2s;
}
.saved-device:hover { background: rgba(74,222,128,.12); }
.saved-left { text-align: left; }
.saved-label { font-size: .8rem; color: var(--muted); }
.saved-code { font-weight: 900; letter-spacing: 3px; color: var(--accent); font-size: 1.15rem; }
.forget-btn { font-size: .8rem; color: var(--muted); background: none; border: none; padding: 4px 8px; border-radius: 6px; cursor: pointer; transition: color .2s; }
.forget-btn:hover { color: var(--red); }

.divider { border: none; border-top: 1px solid rgba(74,222,128,.1); margin: 24px 0; }
.pair-footer { color: var(--muted); font-size: .82rem; }
.pair-footer p { margin-bottom: 6px; }
.pair-footer a { color: var(--accent); text-decoration: none; }
.pair-footer a:hover { text-decoration: underline; }

.hidden { display: none !important; }

@media (max-width: 480px) {
  .pair-card { padding: 28px 20px; }
  .code-input { font-size: 1.6rem; letter-spacing: 6px; padding: 12px 10px; }
}
