/* ============================================
   BOT CELL SERVER - Premium SaaS Auth Theme
   Cyber/GSM/Unlocking Visual Identity
   ============================================ */

/* === PALETA DE CORES ===
   Azul principal: #1E90FF
   Azul neon: #00CFFF
   Laranja destaque: #FF8C00
   Fundo escuro: #0B0F14
   Cinza metálico: #2A2F36
   Verde sistema: #00FF9C
*/

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === AUTH WRAPPER - Fundo Animado === */
.auth-wrapper {
  min-height: 100vh;
  background: #0B0F14;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Grid tech pattern */
.auth-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(30, 144, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 144, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Partículas flutuantes tech */
.auth-wrapper::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(0, 207, 255, 0.4), transparent),
    radial-gradient(1px 1px at 60px 80px, rgba(30, 144, 255, 0.3), transparent),
    radial-gradient(2px 2px at 100px 150px, rgba(0, 255, 156, 0.3), transparent),
    radial-gradient(1px 1px at 140px 40px, rgba(0, 207, 255, 0.4), transparent),
    radial-gradient(2px 2px at 180px 90px, rgba(30, 144, 255, 0.3), transparent),
    radial-gradient(1px 1px at 220px 130px, rgba(0, 207, 255, 0.4), transparent),
    radial-gradient(2px 2px at 260px 60px, rgba(0, 255, 156, 0.3), transparent),
    radial-gradient(1px 1px at 300px 110px, rgba(30, 144, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 350px 200px;
  animation: particlesFloat 15s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes particlesFloat {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-100px) translateX(50px); }
  100% { transform: translateY(0) translateX(0); }
}

/* === LADO ESQUERDO - Branding Visual === */
.auth-branding {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(11, 15, 20, 0.95) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 40px;
  z-index: 2;
  overflow: hidden;
}

/* Glow effect no fundo */
.auth-branding::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(30, 144, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0, 207, 255, 0.1) 0%, transparent 40%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Linhas de circuito animadas */
.circuit-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(0, 207, 255, 0.3), transparent);
  height: 1px;
  animation: circuitMove 8s linear infinite;
}

.circuit-line:nth-child(1) { top: 20%; width: 100%; animation-delay: 0s; }
.circuit-line:nth-child(2) { top: 40%; width: 80%; left: 10%; animation-delay: 2s; }
.circuit-line:nth-child(3) { top: 60%; width: 60%; left: 20%; animation-delay: 4s; }
.circuit-line:nth-child(4) { top: 80%; width: 90%; left: 5%; animation-delay: 6s; }

@keyframes circuitMove {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Logo animada com glow */
.auth-branding-logo {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 40px;
}

.brand-logo-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #1E90FF 0%, #00CFFF 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  box-shadow: 
    0 0 40px rgba(30, 144, 255, 0.5),
    0 0 80px rgba(0, 207, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { box-shadow: 0 0 40px rgba(30, 144, 255, 0.5), 0 0 80px rgba(0, 207, 255, 0.3); }
  100% { box-shadow: 0 0 60px rgba(30, 144, 255, 0.8), 0 0 120px rgba(0, 207, 255, 0.5); }
}

.brand-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1E90FF 0%, #00CFFF 50%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.brand-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Ícones flutuantes */
.floating-icons {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 24px;
  margin: 32px 0;
}

.float-icon {
  width: 56px;
  height: 56px;
  background: rgba(42, 47, 54, 0.8);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #00CFFF;
  backdrop-filter: blur(10px);
  animation: iconFloat 3s ease-in-out infinite;
}

.float-icon:nth-child(1) { animation-delay: 0s; color: #1E90FF; }
.float-icon:nth-child(2) { animation-delay: 0.5s; color: #00CFFF; }
.float-icon:nth-child(3) { animation-delay: 1s; color: #00FF9C; }
.float-icon:nth-child(4) { animation-delay: 1.5s; color: #FF8C00; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Features list */
.brand-features {
  position: relative;
  z-index: 3;
  margin-top: 40px;
}

.brand-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

.brand-feature-item i {
  width: 24px;
  height: 24px;
  background: rgba(0, 255, 156, 0.15);
  border: 1px solid rgba(0, 255, 156, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #00FF9C;
}

/* Status badge */
.brand-status {
  position: relative;
  z-index: 3;
  margin-top: 48px;
  padding: 12px 24px;
  background: rgba(0, 255, 156, 0.1);
  border: 1px solid rgba(0, 255, 156, 0.2);
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00FF9C;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.status-text {
  color: #00FF9C;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* === LADO DIREITO - Formulário === */
.auth-form-section {
  background: #0B0F14;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  position: relative;
  z-index: 2;
}

/* Glass Card Moderno */
.auth-card {
  background: #11161D;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 3;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: cardSlideIn 0.6s ease-out;
}

@keyframes cardSlideIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Borda neon sutil */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 207, 255, 0.5), transparent);
}

/* Títulos do card */
.auth-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 1px;
}

.auth-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
  text-align: center;
}

.brand-highlight {
  color: #FF8C00;
  font-weight: 600;
}

/* === INPUTS ESTILO PREMIUM === */
.auth-input-group {
  position: relative;
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper {
  position: relative;
}

.auth-input-group .form-control {
  width: 100%;
  background: #0F141B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  padding: 14px 16px 14px 48px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.auth-input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Focus state com neon */
.auth-input-group .form-control:focus {
  border-color: #00CFFF;
  box-shadow: 0 0 0 3px rgba(0, 207, 255, 0.1), 0 0 20px rgba(0, 207, 255, 0.2);
  background: #0F141B;
}

.auth-input-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  z-index: 2;
  transition: all 0.3s ease;
}

.auth-input-group .form-control:focus ~ .input-icon {
  color: #00CFFF;
}

/* Password toggle */
.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  padding: 0;
}

.password-toggle:hover {
  color: #00CFFF;
}

/* === BOTÃO LOGIN PREMIUM === */
.auth-btn {
  width: 100%;
  background: linear-gradient(135deg, #1E90FF 0%, #00CFFF 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.auth-btn:hover::before {
  left: 100%;
}

.auth-btn:hover {
  transform: scale(1.02);
  box-shadow: 
    0 0 30px rgba(0, 207, 255, 0.4),
    0 10px 40px rgba(30, 144, 255, 0.3);
}

.auth-btn:active {
  transform: scale(0.98);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loading state */
.auth-btn.loading {
  pointer-events: none;
}

.auth-btn.loading .btn-text {
  opacity: 0;
}

.auth-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* === CHECKBOX === */
.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.auth-check .form-check-input {
  width: 18px;
  height: 18px;
  background: #0F141B;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
  position: relative;
}

.auth-check .form-check-input:checked {
  background: linear-gradient(135deg, #1E90FF 0%, #00CFFF 100%);
  border-color: #00CFFF;
}

.auth-check .form-check-input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
}

.auth-check .form-check-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* === DIVIDER === */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
  gap: 16px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.auth-divider span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Inter', sans-serif;
}

/* === FOOTER === */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}

.auth-footer a {
  color: #00CFFF;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 6px;
}

.auth-footer a:hover {
  color: #1E90FF;
  text-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

/* === LOADING MESSAGE === */
.auth-loading-msg {
  text-align: center;
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
}

.loading-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading-dots::after {
  content: '';
  animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

/* === OTP INPUTS === */
.otp-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 32px 0;
}

.otp-input {
  width: 56px;
  height: 64px;
  background: #0F141B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  outline: none;
}

.otp-input:focus {
  border-color: #00CFFF;
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.3);
  transform: scale(1.05);
}

.otp-input.filled {
  background: rgba(0, 207, 255, 0.1);
  border-color: #00CFFF;
  color: #00CFFF;
}

/* === RESPONSIVE === */
@media (max-width: 1199.98px) {
  .auth-branding {
    display: none;
  }
  
  .auth-form-section {
    padding: 24px;
  }
  
  .auth-card {
    padding: 36px 28px;
  }
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .brand-title {
    font-size: 1.75rem;
  }
  
  .floating-icons {
    gap: 16px;
  }
  
  .float-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .otp-input {
    width: 48px;
    height: 56px;
    font-size: 1.25rem;
  }
}

/* === ERROR MESSAGES === */
.auth-card .error-message {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
}

.auth-input-group .form-control.error {
  border-color: rgba(255, 107, 107, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* === TYPEWRITER EFFECT === */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s steps(30, end);
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
