/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background animado com estrelas */
.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.stars, .stars2, .stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #00D4FF, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(0, 212, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #00D4FF, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(0, 212, 255, 0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #00D4FF, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: stars-move 20s linear infinite;
}

.stars2 {
  background-image: 
    radial-gradient(1px 1px at 40px 60px, #ffffff, transparent),
    radial-gradient(1px 1px at 80px 20px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 120px 90px, #ffffff, transparent);
  background-repeat: repeat;
  background-size: 150px 80px;
  animation: stars-move 15s linear infinite reverse;
}

.stars3 {
  background-image: 
    radial-gradient(1px 1px at 60px 40px, rgba(0, 212, 255, 0.4), transparent),
    radial-gradient(2px 2px at 100px 80px, rgba(0, 212, 255, 0.3), transparent),
    radial-gradient(1px 1px at 140px 20px, rgba(255, 255, 255, 0.5), transparent);
  background-repeat: repeat;
  background-size: 180px 120px;
  animation: stars-move 25s linear infinite;
}

@keyframes stars-move {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

/* Layout principal */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Header da página de login */
.login-header {
  padding: 2rem 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.logo-section {
  max-width: 400px;
  margin: 0 auto;
}

.logo-icon {
  font-size: 3rem;
  color: #00D4FF;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.logo-title {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00D4FF;
  margin: 0;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  letter-spacing: 2px;
}

.logo-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #cccccc;
  margin: 0.5rem 0 0 0;
  font-weight: 400;
}

/* Conteúdo principal */
.login-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Seção de informações do projeto */
.project-info {
  display: flex;
  align-items: center;
}

.info-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  height: fit-content;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: #00D4FF;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
  transform: translateY(-5px);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-header i {
  font-size: 2rem;
  color: #00D4FF;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.info-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  color: #00D4FF;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.info-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 2rem;
}

.info-description strong {
  color: #00D4FF;
  font-weight: 600;
}

.features-preview {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  border-left: 3px solid #00D4FF;
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateX(5px);
}

.feature-item i {
  font-size: 1.2rem;
  color: #00D4FF;
  width: 20px;
  text-align: center;
}

.feature-item span {
  color: #ffffff;
  font-weight: 500;
}

/* Seção do formulário de login */
.login-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.mascote-login {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #00D4FF;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.form-header h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  color: #00D4FF;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.form-header p {
  color: #cccccc;
  font-size: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #00D4FF;
  font-size: 1.1rem;
  z-index: 2;
}

.input-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.input-group input:focus {
  outline: none;
  border-color: #00D4FF;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.btn-primary, .btn-secondary {
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, #00E5FF 0%, #00B8E6 100%);
}

.btn-secondary {
  background: rgba(0, 212, 255, 0.1);
  color: #00D4FF;
  border: 2px solid rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00D4FF;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.divider {
  text-align: center;
  margin: 0.5rem 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.divider span {
  background: rgba(0, 0, 0, 0.6);
  padding: 0 1rem;
  color: #cccccc;
  font-size: 0.9rem;
}

/* Footer */
.login-footer {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content p {
  color: #cccccc;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #00D4FF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.footer-credit {
  color: #999999;
  font-size: 0.9rem;
  margin: 0;
}

.footer-credit strong {
  color: #00D4FF;
}

/* Responsividade Mobile-First */
@media (max-width: 768px) {
  .login-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  
  .login-header {
    padding: 1.5rem 1rem;
  }
  
  .logo-title {
    font-size: 2rem;
  }
  
  .logo-icon {
    font-size: 2.5rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
  
  .info-header h2 {
    font-size: 1.3rem;
  }
  
  .form-container {
    padding: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .login-header {
    padding: 1rem;
  }
  
  .logo-title {
    font-size: 1.8rem;
  }
  
  .info-card {
    padding: 1rem;
  }
  
  .form-container {
    padding: 1.5rem;
  }
  
  .login-main {
    padding: 0.5rem;
  }
}

/* Aviso Firefox */
.aviso-firefox {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 350px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  border: 2px solid #00D4FF;
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  animation: slideIn 0.5s ease forwards;
}

.aviso-firefox button {
  background: #00D4FF;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.aviso-firefox button:hover {
  background: #00E5FF;
  transform: translateY(-1px);
}

.oculto {
  display: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}