/* Variáveis e Reset */
:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --neon-blue: #00d2ff;
  --neon-purple: #bc00ff;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --glow: 0 0 15px rgba(56, 189, 248, 0.6);
  --card-glow: 0 0 20px rgba(0, 210, 255, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Roboto', 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, var(--primary), #0c1220);
  color: var(--text);
  min-height: 100vh;
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(188, 0, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.1) 0%, transparent 20%);
  z-index: -1;
}

/* Container Principal */
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  justify-content: center;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow);
}

.logo-icon i {
  font-size: 2rem;
  color: var(--text);
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--neon-blue), var(--accent), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

/* Container de Autenticação */
.auth-container {
  background: rgba(30, 41, 59, 0.7);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.1);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4), var(--card-glow);
  width: 100%;
  margin: 0 auto;
  padding: 50px 40px;
}

/* Formulário */
.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.form-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.05rem;
  transition: var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input {
  accent-color: var(--accent);
}

.forgot-password {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.forgot-password:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), var(--glow);
}

.social-login {
  margin: 30px 0;
  text-align: center;
}

.social-login p {
  position: relative;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.social-login p::before,
.social-login p::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(56, 189, 248, 0.2);
}

.social-login p::before {
  left: 0;
}

.social-login p::after {
  right: 0;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-btn:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.social-btn.google { color: #DB4437; }
.social-btn.facebook { color: #4267B2; }
.social-btn.microsoft { color: #7FBA00; }

/* Efeitos especiais */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
  animation: scan 4s linear infinite;
  opacity: 0.3;
  z-index: -1;
}

@keyframes scan {
  0% { top: 0; }
100% { top: 100%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 768px) {
.logo {
  margin-bottom: 30px;
}

.logo-text {
  font-size: 2rem;
}

.auth-container {
  padding: 40px 20px;
}

.form-header h2 {
  font-size: 1.8rem;
}
}

@media (max-width: 480px) {
.remember-forgot {
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.social-login p::before,
.social-login p::after {
  width: 25%;
}
}

.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.register-btn {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.register-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  transition: width 0.5s ease;
  z-index: -1;
}

.register-btn:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.register-btn:hover::before {
  width: 100%;
}

.termos {
    color: #4267B2;
    text-decoration: none;
    font-weight: bold;
}

.politica {
    color: #4267B2;
    text-decoration: none;
    font-weight: bold;
}