/* ============================================================
   login.css  —  VHC User Portal  —  Login / Registrierung
   Pfad: /vhc/user/login.css
   Fonts via main-vhc.css (../../global-media/fonts/)
   ============================================================ */

/* ── Body ── */
body.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Main ── */
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  position: relative;
  z-index: 1;
}

/* ── Outer Wrap ── */
.login-wrap {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── Card ── */
.login-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--neon1);
  position: relative;
  padding: 32px 36px 36px;
  box-shadow:
    0 0 60px rgba(0,245,255,0.06),
    0 20px 60px rgba(0,0,0,0.5);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-top: 2px solid var(--neon1);
  border-left: 2px solid var(--neon1);
}
.login-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-bottom: 2px solid var(--neon2);
  border-right: 2px solid var(--neon2);
}

/* ── Logo ── */
.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.login-logo img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.login-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.login-logo-title {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--neon1) 0%, var(--neon3) 50%, var(--neon2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo-sub {
  font-family: 'Orbitron', monospace;
  font-size: 0.58rem;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Hero ── */
.login-hero {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.login-hero-img {
  height: 90px;
  width: auto;
  display: inline-block;
  opacity: 0.9;
  filter: drop-shadow(0 0 18px rgba(255,120,0,0.45));
  margin-bottom: 18px;
}
.login-hero-sub {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 14px;
}
.login-hero-hs {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}

/* ── Tabs ── */
.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ltab {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.ltab:hover {
  color: var(--text);
}
.ltab.active {
  color: var(--neon1);
  border-bottom-color: var(--neon1);
}

/* ── Panels ── */
.login-panel {
  display: none;
}
.login-panel.active {
  display: block;
}
.login-panel form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Fields ── */
.lfield {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lfield-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--neon1);
  opacity: 0.85;
  text-transform: uppercase;
}
.lfield-input {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-left: 2px solid var(--neon3);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 0;
  width: 100%;
}
.lfield-input:focus {
  border-color: var(--neon1);
  border-left-color: var(--neon1);
  background: rgba(0,245,255,0.04);
}
.lfield-hint {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── CAPTCHA ── */
.captcha-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.captcha-row canvas {
  background: #080b14;
  border: 1px solid var(--border);
  border-left: 2px solid var(--neon3);
  height: 44px;
  flex-shrink: 0;
  display: block;
}
.captcha-refresh {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
  padding: 0 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.captcha-refresh:hover {
  color: var(--neon1);
  border-color: var(--neon1);
}
.captcha-input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ── Honeypot ── */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* ── Testmodus-Hinweis ── */
.login-info {
  font-size: 0.72rem;
  color: var(--neon4);
  padding: 7px 12px;
  border-left: 2px solid rgba(0,255,136,0.4);
  background: rgba(0,255,136,0.04);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

/* ── Hinweise ── */
.login-notice {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 10px 14px;
  border-left: 2px solid rgba(0,245,255,0.2);
  background: rgba(0,245,255,0.03);
}
.login-warn {
  font-size: 0.78rem;
  color: #f0b429;
  line-height: 1.55;
  padding: 14px 14px;
  border-left: 2px solid rgba(240,180,41,0.4);
  background: rgba(240,180,41,0.04);
  margin: 6px 0;
}
.login-warn strong {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

/* ── Button ── */
.login-btn {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon1);
  background: transparent;
  border: 1px solid var(--neon1);
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.4s;
}
.login-btn:hover {
  background: rgba(0,245,255,0.06);
  box-shadow: 0 0 24px rgba(0,245,255,0.2), inset 0 0 24px rgba(0,245,255,0.04);
}
.login-btn:hover::before {
  transform: translateX(100%);
}
.login-btn:active {
  transform: scale(0.98);
}

/* ── Fehler ── */
.login-err {
  font-size: 0.8rem;
  color: #ff6b6b;
  padding: 8px 12px;
  border-left: 2px solid #ff6b6b;
  background: rgba(255,80,80,0.06);
  letter-spacing: 0.02em;
}

/* ── Passwort-Stärke ── */
.pw-strength-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.pw-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
}
.pw-req {
  font-size: 0.68rem;
  color: var(--muted);
  transition: color 0.2s;
}
.pw-req.met {
  color: var(--neon4);
}

/* ── Checkboxen ── */
.lcheck {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}
.lcheck input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--neon1);
  flex-shrink: 0;
  cursor: pointer;
}
.lcheck-link {
  color: var(--neon1);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,245,255,0.3);
  transition: border-color 0.2s;
}
.lcheck-link:hover { border-color: var(--neon1); }

/* ── Responsive ── */
@media (max-width: 520px) {
  .login-card {
    padding: 24px 20px 28px;
  }
  .ltab {
    padding: 10px 14px 12px;
    font-size: 0.6rem;
  }
}

/* ── Hard-Ban: einmaliges Sperr-Popup beim Login ── */
.login-ban-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,8,18,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.login-ban-box {
  background: #0d1525;
  border: 1px solid rgba(255,70,70,0.5);
  border-radius: 10px;
  padding: 28px 30px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 30px rgba(255,70,70,0.25);
}
.login-ban-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff6b6b;
  margin-bottom: 14px;
}
.login-ban-msg {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  color: #e0e6f0;
  line-height: 1.5;
  margin-bottom: 18px;
  white-space: pre-wrap;
}
.login-ban-count {
  font-size: 0.8rem;
  color: #8892b0;
}
