/* Modern UI Classes */
.auth-card {
  background: white;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 228, 233, 0.8);
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #E2E4E9;
  border-radius: 12px;
  font-size: 15px;
  color: #0D0D0D;
  background: #FAFAFA;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: #3B9BC8;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(59, 155, 200, 0.15);
}

.auth-input.error {
  border-color: #C8181E;
  background: #FFF;
}

.auth-input.error:focus {
  box-shadow: 0 0 0 4px rgba(200, 24, 30, 0.15);
}

.auth-btn {
  margin-top: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #C8181E 0%, #A51015 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(200, 24, 30, 0.2);
  width: 100%;
}

.auth-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(200, 24, 30, 0.35);
  background: linear-gradient(135deg, #dc1a21 0%, #b81218 100%);
}

.auth-btn:active:not(:disabled) {
  transform: translateY(0px);
  box-shadow: 0 4px 12px rgba(200, 24, 30, 0.25);
}

.auth-btn:disabled {
  background: linear-gradient(135deg, #E5BEBC 0%, #D9A9A6 100%);
  box-shadow: 0 4px 12px rgba(200, 24, 30, 0.1);
  cursor: not-allowed;
  opacity: 0.85;
  transform: none;
}

/* Left Panel Styles */
@keyframes float1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float2 {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-15px) rotate(-5deg) scale(1.05); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float1 10s ease-in-out infinite;
  pointer-events: none;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Hero Section Enhancements */
@keyframes grid-pulse {
  0% { opacity: 0.1; }
  50% { opacity: 0.2; }
  100% { opacity: 0.1; }
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(59, 155, 200, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 155, 200, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  animation: grid-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

.glass-card {
  background: #0D1F3C; /* Solid fallback for older browsers */
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.hero-visual-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto; /* Fallback for browsers without aspect-ratio support */
  min-height: 300px;
  background: #0D1F3C; /* Solid fallback */
  background: radial-gradient(circle at center, rgba(13, 31, 60, 0.6) 0%, rgba(10, 15, 29, 0.9) 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(59, 155, 200, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.digital-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(59, 155, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 155, 200, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.hero-visual-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3B9BC8, #89C4E1, #3B9BC8, transparent);
  width: 100%;
  z-index: 5;
  box-shadow: 0 0 15px rgba(59, 155, 200, 0.8);
  animation: moveLaser 3s ease-in-out infinite;
}

@keyframes moveLaser {
  0% { transform: translateY(-150%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(150%); opacity: 0; }
}

.aires-text-glow {
  font-size: 84px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(59, 155, 200, 0.3);
  animation: textFlicker 5s linear infinite;
  z-index: 2;
  user-select: none;
}

@keyframes textFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(59, 155, 200, 0.3); }
  33% { opacity: 0.8; text-shadow: 0 0 10px rgba(59, 155, 200, 0.2); }
  34% { opacity: 1; text-shadow: 0 0 25px rgba(59, 155, 200, 0.4); }
  35% { opacity: 0.9; }
  66% { opacity: 1; }
  67% { opacity: 0.4; transform: scale(1.02); }
  68% { opacity: 1; transform: scale(1); }
}

.data-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #3B9BC8;
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 8px #3B9BC8;
  opacity: 0.6;
  animation: particleMove var(--duration) linear infinite;
  animation-delay: var(--delay);
}

@keyframes particleMove {
  0% { transform: translate(var(--startX), 200px); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translate(var(--endX), -200px); opacity: 0; }
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(200, 24, 30, 0.4);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-5px);
}

/* Dropdown Arrow Animation */
@keyframes dropdownArrowRotate {
  0%, 100% { transform: translateY(-50%) rotateZ(0deg); }
  50% { transform: translateY(-50%) rotateZ(5deg); }
}

.select-wrapper:has(select:focus) .dropdown-arrow {
  animation: dropdownArrowRotate 0.6s ease-in-out infinite;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.select-wrapper:has(select:focus) .dropdown-arrow svg {
  color: #3B9BC8;
  stroke-width: 2.8;
}

.select-wrapper:has(select:hover) .dropdown-arrow {
  opacity: 1;
}
