/* ── ZIP-CAM · Auth ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

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

:root {
  --orange: #ff5500;
  --orange-dim: rgba(255,85,0,0.09);
  --orange-b: rgba(255,85,0,0.25);
  --bg: #07090d; --bg2: #0a0e16; --bg3: #0e1520;
  --card: #101828; --border: #1a2535;
  --text: #d2dce8; --muted: #4a5a6a; --dim: #3d5060;
  --green: #22c55e;
}

html, body { min-height: 100vh; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, sans-serif;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none; z-index: 0;
}
.bg-glow {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255,80,0,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── TOP BAR ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 50px;
  background: rgba(7,9,13,0.96);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.topbar-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.tl-icon {
  width: 28px; height: 20px;
}
.tl-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.5px;
}
.tl-name .zip { color: #fff; }
.tl-name .cam { color: var(--orange); }
.btn-back {
  display: flex; align-items: center; gap: 5px;
  color: var(--muted); text-decoration: none;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 4px;
  letter-spacing: 0.5px; transition: all .2s;
}
.btn-back:hover { border-color: var(--orange); color: var(--orange); }

/* ── AUTH WRAP ── */
.auth-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 1.2rem 40px;
  position: relative; z-index: 1;
}

.auth-card {
  width: 100%; max-width: 420px;
  position: relative;
}

/* Corner accents */
.corner {
  position: absolute; width: 20px; height: 20px;
}
.corner-tl { top: -1px; left: -1px; border-top: 2px solid var(--orange); border-left: 2px solid var(--orange); }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--orange); border-right: 2px solid var(--orange); }

/* Slider (panels) */
.auth-slider {
  overflow: hidden;
  border-radius: 10px;
}
.auth-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px;
  display: none;
}
.auth-panel.active { display: block; }

/* ── PANEL CONTENT ── */
.panel-logo-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.panel-logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.panel-logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800;
}
.panel-logo-name .zip { color: #fff; }
.panel-logo-name .cam { color: var(--orange); }

.panel-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange-dim); border: 1px solid var(--orange-b);
  padding: 3px 10px; border-radius: 3px;
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.panel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px; font-weight: 800; line-height: 1;
  text-transform: uppercase; margin-bottom: 6px;
}
.panel-title span { color: var(--orange); }
.panel-sub { font-size: 11px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.panel-divider { height: 1px; background: var(--border); margin-bottom: 20px; }

/* Form */
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.lbl {
  display: block; font-size: 10px; color: var(--muted);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 5px; font-weight: 600;
}
.inp {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 5px; padding: 9px 12px;
  color: var(--text); font-size: 13px;
  font-family: 'Barlow', sans-serif;
  transition: border-color .2s;
  outline: none;
}
.inp:focus { border-color: var(--orange); }
.inp::placeholder { color: var(--dim); }

.strength-bar {
  display: flex; gap: 3px; margin-top: 5px;
}
.str-seg {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--border); transition: background .3s;
}
.str-1 { background: var(--red) !important; }
.str-2 { background: var(--amber) !important; }
.str-3 { background: var(--green) !important; }
.str-4 { background: var(--green) !important; }

.forgot {
  text-align: right; font-size: 11px;
  color: var(--muted); margin-bottom: 18px;
  cursor: pointer; transition: color .2s;
}
.forgot:hover { color: var(--orange); }

.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px;
}
.chk-box {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 3px;
  background: var(--bg3); cursor: pointer;
  transition: all .2s; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.chk-box.checked {
  background: var(--orange); border-color: var(--orange);
}
.chk-box.checked::after {
  content: '✓'; color: #fff; font-size: 10px; line-height: 1;
}
.chk-label { font-size: 11px; color: var(--muted); line-height: 1.5; }
.chk-label a { color: var(--orange); }

.btn-auth {
  width: 100%; padding: 12px;
  background: var(--orange); border: none;
  border-radius: 6px; color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 0 18px rgba(255,85,0,.25);
  margin-bottom: 10px;
}
.btn-auth:hover { background: #ff6b1a; box-shadow: 0 0 28px rgba(255,85,0,.4); }
.btn-play {
  width: 8px; height: 8px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 8px solid white;
  display: inline-block;
}
.btn-switch {
  width: 100%; padding: 10px;
  background: transparent;
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); font-size: 11px;
  cursor: pointer; transition: all .2s;
}
.btn-switch:hover { border-color: var(--orange); color: var(--orange); }

.panel-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.footer-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; color: var(--dim); letter-spacing: 0.5px;
}
.footer-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
}
.footer-ver { font-size: 9px; color: var(--dim); }

.auth-bottom {
  margin-top: 20px;
  font-size: 10px; color: var(--dim); text-align: center;
}

/* panel switch link */
.switch-link {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 5px; font-size: 10px; color: var(--muted);
  cursor: pointer; transition: color .2s;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px;
}
.switch-link:hover { color: var(--orange); }

@media (max-width: 480px) {
  .auth-panel { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ── Input with icon ── */
.inp-wrap {
  position: relative;
  display: flex; align-items: center;
}
.inp-icon {
  position: absolute; left: 11px;
  width: 14px; height: 14px;
  stroke: var(--dim); fill: none;
  pointer-events: none; flex-shrink: 0;
}
.inp-icon-pad { padding-left: 34px !important; }
.inp-eye {
  position: absolute; right: 10px;
  background: none; border: none; cursor: pointer;
  padding: 4px; display: flex; align-items: center;
}

/* Lucide in switch-link */
.switch-link svg { flex-shrink: 0; }
