/* ==========================================================================
   CYBER DARK PORTAL - HIGH-TECH SCI-FI AUTHENTICATION STYLES
   Inspired by Cyber Command Centers, Holographic HUDs & Futuristic Portals
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --cyber-cyan: #00f0ff;
  --cyber-cyan-glow: rgba(0, 240, 255, 0.45);
  --cyber-blue: #0080ff;
  --cyber-dark-bg: #030712;
  --cyber-card-bg: rgba(5, 11, 24, 0.88);
  --cyber-card-border: #00d2ff;
  --cyber-text: #f0fdf4;
  --cyber-text-dim: #94a3b8;
  --cyber-danger: #ef4444;
  --cyber-success: #10b981;
  --font-cyber: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Rajdhani', 'Hind Siliguri', sans-serif;
}

* {
  box-sizing: border-box;
}

body.cyber-auth-body {
  margin: 0;
  padding: 20px 15px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cyber-dark-bg);
  background-image: 
    radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, rgba(3, 7, 18, 0.75) 60%, rgba(2, 4, 10, 0.95) 100%),
    url('../images/cyber_globe_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--cyber-text);
  overflow-x: hidden;
  position: relative;
}

/* Ambient Cyber Grid Overlay */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

/* Scanline Effect */
.cyber-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.25)
  );
  background-size: 100% 4px;
  z-index: 2;
  opacity: 0.6;
}

/* Floating AI Voice Badge */
.cyber-voice-status {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--cyber-cyan);
  box-shadow: 0 0 15px var(--cyber-cyan-glow);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyber-cyan);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.cyber-voice-status:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 25px var(--cyber-cyan);
  transform: scale(1.03);
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.voice-wave span {
  width: 3px;
  height: 100%;
  background: var(--cyber-cyan);
  border-radius: 2px;
  animation: voiceWaveAnim 1.2s ease-in-out infinite alternate;
}

.voice-wave span:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.voice-wave span:nth-child(3) { animation-delay: 0.4s; height: 80%; }
.voice-wave span:nth-child(4) { animation-delay: 0.6s; height: 40%; }

@keyframes voiceWaveAnim {
  0% { transform: scaleY(0.3); opacity: 0.4; }
  100% { transform: scaleY(1.2); opacity: 1; }
}

.voice-wave.muted span {
  animation: none !important;
  transform: scaleY(0.2) !important;
  background: #64748b !important;
}

/* Authentication Card Wrapper */
.cyber-card-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.cyber-card-wrapper.register-mode {
  max-width: 500px;
}

/* Main Cyber Glassmorphic Card */
.cyber-card {
  position: relative;
  background: var(--cyber-card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--cyber-card-border);
  border-radius: 8px;
  padding: 36px 32px 30px;
  box-shadow: 
    0 0 35px rgba(0, 240, 255, 0.22),
    inset 0 0 20px rgba(0, 240, 255, 0.06);
  text-align: center;
}

/* Sci-Fi Corner Brackets */
.cyber-card::before,
.cyber-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.cyber-card::before {
  top: -2px;
  left: -2px;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  box-shadow: -2px -2px 8px var(--cyber-cyan);
}

.cyber-card::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
  box-shadow: 2px 2px 8px var(--cyber-cyan);
}

/* Logo & Rotating Hologram Ring */
.cyber-logo-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-logo-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px dashed var(--cyber-cyan);
  border-radius: 50%;
  animation: cyberRingRotate 12s linear infinite;
  box-shadow: 0 0 15px var(--cyber-cyan-glow);
}

@keyframes cyberRingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cyber-logo-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
  background: #020617;
  position: relative;
  z-index: 2;
}

/* Header Text */
.cyber-title {
  font-family: var(--font-cyber);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  margin: 0 0 6px 0;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.cyber-subtitle {
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyber-cyan);
  letter-spacing: 1.5px;
  margin: 0 0 24px 0;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Feedback / Alert */
.cyber-feedback {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.cyber-feedback.error {
  display: flex;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

.cyber-feedback.success {
  display: flex;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #86efac;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

/* Form Fields */
.cyber-field {
  margin-bottom: 18px;
  text-align: left;
}

.cyber-label {
  display: block;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cyber-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cyber-input {
  width: 100%;
  height: 46px;
  background: #e6edf8 !important;
  border: 1.5px solid transparent;
  border-radius: 4px;
  padding: 0 14px 0 38px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #020617 !important;
  transition: all 0.2s ease;
  outline: none;
}

.cyber-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.cyber-input:focus {
  background: #ffffff !important;
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 16px var(--cyber-cyan-glow);
}

.cyber-input-icon {
  position: absolute;
  left: 12px;
  color: #0f172a;
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}

.cyber-toggle-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: color 0.2s;
  z-index: 2;
}

.cyber-toggle-eye:hover {
  color: #020617;
}

/* Options Bar (Remember & Forgot) */
.cyber-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 22px;
  font-size: 12.5px;
}

.cyber-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  font-size: 14px;
}

.cyber-checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyber-cyan);
  cursor: pointer;
}

/* Main Cyber Action Button */
.btn-cyber-submit {
  width: 100%;
  height: 48px;
  background: rgba(3, 7, 18, 0.95);
  border: 1.5px solid var(--cyber-cyan);
  border-radius: 4px;
  color: var(--cyber-cyan);
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-cyber-submit:hover:not(:disabled) {
  background: var(--cyber-cyan);
  color: #020617;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.85);
  transform: translateY(-1px);
}

.btn-cyber-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Navigation Links */
.cyber-links-stack {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cyber-nav-link {
  font-family: var(--font-cyber);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #cbd5e1;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: inline-block;
}

.cyber-nav-link:hover {
  color: var(--cyber-cyan);
  text-shadow: 0 0 10px var(--cyber-cyan);
}

.cyber-nav-link.accent {
  color: var(--cyber-cyan);
}

.cyber-nav-link.accent:hover {
  color: #ffffff;
  text-shadow: 0 0 12px #ffffff;
}

/* Captcha Box for Registration */
.cyber-captcha-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.cyber-captcha-display {
  flex: 1;
  background: rgba(0, 240, 255, 0.1);
  border: 1px dashed var(--cyber-cyan);
  border-radius: 4px;
  padding: 8px 14px;
  font-family: var(--font-cyber);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--cyber-cyan);
  text-shadow: 0 0 8px var(--cyber-cyan);
  text-align: center;
  user-select: none;
}

.btn-cyber-captcha-refresh {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--cyber-cyan);
  color: var(--cyber-cyan);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
}

.btn-cyber-captcha-refresh:hover {
  background: var(--cyber-cyan);
  color: #020617;
}

/* Strength Meter */
.cyber-strength-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.cyber-strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
}

/* WhatsApp Support Link in Register */
.cyber-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  border-radius: 4px;
  color: #6ee7b7;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 14px;
  transition: all 0.2s ease;
}

.cyber-whatsapp-btn:hover {
  background: #10b981;
  color: #020617;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

@media (max-width: 480px) {
  .cyber-card {
    padding: 28px 20px 24px;
  }
  .cyber-title {
    font-size: 21px;
  }
  .cyber-voice-status {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 10px;
  }
}
