/* ============================================
   PAGE AUTH - Silencio Habitado
   Login / Signup / Auth screens
   Base reset/variables/background from aurora-core.css
   ============================================ */

.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.auth-logo img {
  width: min(240px, 100%);
  height: auto;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.18));
}

.auth-logo span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.auth-field input[type="text"],
.auth-field input[type="password"],
.auth-field input[type="email"] {
  height: 48px;
  padding: 0 16px;
  background: var(--bg-input);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.auth-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.auth-field input::placeholder {
  color: var(--text-dim);
}

.auth-field .hint {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-wrap img {
  border-radius: var(--radius-sm);
  height: 50px;
  border: 1px solid rgba(0, 212, 255, 0.12);
}

.captcha-wrap input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-align: center;
}

.auth-btn {
  height: 48px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.auth-btn:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(139, 92, 246, 0.3));
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
  transform: translateY(-1px);
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
}

.auth-notice {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.12);
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
}

.auth-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-check input {
  margin-top: 3px;
  accent-color: var(--cyan);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-login-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-login-screen .login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  padding: 0 20px;
}

.auth-login-screen .login-card {
  background: rgba(15, 21, 37, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(0, 212, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
}

.auth-login-screen .login-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
  animation: cardGlow 8s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.auth-login-screen .logo-section,
.auth-login-screen .login-mockup-form,
.auth-login-screen .links-section,
.auth-login-screen .login-error-banner {
  position: relative;
  z-index: 2;
}

.auth-login-screen .logo-section {
  text-align: center;
  margin-bottom: 40px;
}

.auth-login-screen .logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.auth-login-screen .logo-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.auth-login-screen .logo-img {
  width: 100px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}

.auth-login-screen .site-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #e8ecf1;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.auth-login-screen .site-subtitle {
  font-size: 13px;
  color: #8b9bb4;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  text-align: center;
  margin: 0;
}

.auth-login-screen .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), transparent);
  margin: 30px 0;
  position: relative;
}

.auth-login-screen .divider::after {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #00d4ff;
  font-size: 10px;
  background: #0f1525;
  padding: 0 10px;
}

.auth-login-screen .form-group {
  margin-bottom: 24px;
}

.auth-login-screen .form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  opacity: 0.9;
  font-family: 'Inter', sans-serif;
}

.auth-login-screen .input-wrapper {
  position: relative;
}

.auth-login-screen .form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  color: #e8ecf1;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.auth-login-screen .form-input::placeholder {
  color: rgba(139, 155, 180, 0.5);
}

.auth-login-screen .form-input:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  background: rgba(10, 14, 26, 0.8);
}

.auth-login-screen .input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b9bb4;
  font-size: 18px;
  pointer-events: none;
  transition: color 0.3s ease;
}

.auth-login-screen .form-input:focus + .input-icon {
  color: #00d4ff;
}

.auth-login-screen .turnstile-inline {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-login-screen .cf-turnstile {
  display: inline-flex;
  justify-content: center;
}

.auth-login-screen .login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0099ff, #00d4ff);
  border: none;
  border-radius: 12px;
  color: #0a0e1a;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  min-height: 56px;
}

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

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

.auth-login-screen .login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.auth-login-screen .links-section {
  margin-top: 28px;
  text-align: center;
}

.auth-login-screen .links-section a {
  color: #8b9bb4;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.auth-login-screen .links-section a:hover {
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.auth-login-screen .links-section .separator {
  color: rgba(139, 155, 180, 0.3);
  margin: 0 10px;
}

.auth-login-screen .register-link {
  color: #00d4ff !important;
  font-weight: 600;
}

.auth-login-screen .status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  display: flex;
  justify-content: center;
  gap: 30px;
  z-index: 10;
  font-size: 11px;
  color: #8b9bb4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-login-screen .status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-login-screen .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.auth-login-screen .loading-ring {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #0a0e1a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

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

.auth-login-screen .login-btn.loading .loading-ring {
  display: inline-block;
}

.auth-login-screen .login-error-banner {
  margin-bottom: 20px;
}

.auth-login-screen .auth-inline-hint {
  margin-top: 10px;
  color: #8b9bb4;
  font-size: 12px;
  line-height: 1.5;
}

.auth-login-screen .signup-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-login-screen .signup-notice-modern {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }

  .auth-title {
    font-size: 20px;
  }

  .captcha-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .captcha-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .auth-login-screen .login-card {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .auth-login-screen .site-title {
    font-size: 22px;
  }

  .auth-login-screen .status-bar {
    gap: 15px;
    font-size: 10px;
    flex-wrap: wrap;
  }
}
