/* auth.css - Estilos para la Pantalla Intermedia de Login Seguro */

.auth-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid rgba(145, 70, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  backdrop-filter: blur(25px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(145, 70, 255, 0.25);
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

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

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(145, 70, 255, 0.15);
  border: 2px solid var(--twitch-purple);
  box-shadow: 0 0 25px rgba(145, 70, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 1.25rem auto;
  animation: floatElement 3s infinite ease-in-out;
}

.auth-header h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.auth-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-form-group {
  margin-bottom: 1.25rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrapper .form-control {
  padding-right: 2.75rem;
  font-size: 1.1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-color: rgba(145, 70, 255, 0.35);
  background: rgba(10, 10, 22, 0.9);
}

.auth-input-wrapper .form-control:focus {
  border-color: var(--twitch-purple-light);
  box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.3), 0 0 15px rgba(145, 70, 255, 0.2);
}

.btn-toggle-pwd {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-toggle-pwd:hover {
  color: #ffffff;
}

.auth-error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.35s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.auth-btn-submit {
  width: 100%;
  padding: 0.95rem;
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-footer-info {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.auth-footer-info code {
  color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
  margin-top: 0.5rem;
}

.auth-back-link:hover {
  color: var(--twitch-purple-light);
}
