/* ============================================================
   login.css — Login & PIN page styles
   TG Forwarder © 2026
   ============================================================ */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Radial glow accent */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.06), transparent 70%);
  pointer-events: none;
}

/* ── Card ── */
.card {
  background: #0f1318;
  border: 1px solid #1e2530;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), #0088cc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.logo-text span { color: var(--accent); }
.logo-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Login form ── */
.card-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e2530;
}

.card label {
  font-size: 11px;
  margin-top: 0;
  margin-bottom: 7px;
}

.card input {
  background: #0a0f14;
  border-color: #1e2530;
  font-size: 14px;
  padding: 11px 14px;
}
.card input:focus { box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}
.btn-login:hover { box-shadow: 0 0 35px rgba(0,212,255,0.5); transform: translateY(-1px); }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.error-box {
  font-size: 12px;
  color: var(--danger);
  background: rgba(255,71,87,0.08);
  border: 1px solid rgba(255,71,87,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: none;
}
.error-box.show { display: block; }

/* ── PIN page extras ── */
.card-pin {
  max-width: 340px;
  text-align: center;
}
.lock-icon   { font-size: 40px; margin-bottom: 12px; }
.pin-heading { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.pin-sub     { font-size: 11px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.pin-sub .username { color: var(--accent); font-weight: 700; }

.pin-dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; }
.dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: all 0.2s;
}
.dot.filled { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(0,212,255,0.5); }
.dot.error  { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 10px rgba(255,71,87,0.5); }

.err-msg { font-size: 11px; color: var(--danger); height: 18px; margin-bottom: 18px; }

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.key {
  background: #0a0f14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  min-height: 56px;
  touch-action: manipulation;
}
.key:hover  { background: var(--border); border-color: var(--accent); color: var(--accent); }
.key:active { transform: scale(0.93); }
.key.del    { font-size: 16px; color: var(--muted); }
.key.del:hover { color: var(--danger); border-color: var(--danger); }
.key.zero   { grid-column: 2; }

.card-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.logout-link  { font-size: 11px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.logout-link:hover { color: var(--danger); }

/* ── Responsive ── */
@media (max-width: 420px) {
  .card     { padding: 28px 20px; border-radius: 14px; }
  .logo-text { font-size: 18px; }
  .key      { padding: 12px; font-size: 18px; }
  .numpad   { gap: 8px; }
  .dot      { width: 14px; height: 14px; }
}