body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

header {
  background-color: #f8f9fa;
  color: #333;
  padding: 16px 24px;
  border-bottom: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-title img {
  height: 50px;
  width: auto;
}

.logo-title h1 {
  margin: 0;
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.2;
  color: #222;
}

.breadcrumb {
  background: linear-gradient(135deg, #e6f0ff 0%, #cce7ff 100%);
  padding: 16px 24px;
  font-size: 0.9em;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.breadcrumb-container {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #003366;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 51, 102, 0.2);
}

.breadcrumb-back:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 51, 102, 0.3);
  transform: translateX(-2px);
  text-decoration: none;
  color: #002244;
}

.back-icon {
  font-size: 1.1em;
  font-weight: bold;
}

.back-text {
  font-size: 0.95em;
}

.breadcrumb-divider {
  color: #666;
  font-weight: normal;
  margin: 0 4px;
}

.breadcrumb-current {
  color: #555;
  font-weight: 500;
}

.container {
  max-width: 500px;
  margin: 40px auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.header-section {
  background-color: #003366;
  color: white;
  padding: 30px;
  text-align: center;
}

.header-section.hidden {
  display: none;
}

.header-section h2 {
  margin: 0 0 10px;
  font-size: 1.6em;
  font-weight: 600;
}

.header-section p {
  margin: 0;
  opacity: 0.9;
  font-size: 1em;
}

.form-section {
  padding: 30px;
}

.tabs {
  display: flex;
  margin-bottom: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 6px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tabs.hidden {
  display: none;
}

.tab {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 500;
  color: #6c757d;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 2px;
}

.tab:hover {
  color: #495057;
  background: rgba(255, 255, 255, 0.5);
}

.tab.active {
  color: #003366;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,51,102,0.15);
  border: 1px solid rgba(0,51,102,0.1);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, #003366, #004080);
  border-radius: 2px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.step.active {
  background-color: #003366;
  color: white;
}

.step.completed {
  background-color: #28a745;
  color: white;
}

.step-title {
  text-align: center;
  margin-bottom: 15px;
  color: #003366;
  font-size: 1.1em;
  font-weight: 500;
}

.form-instructions {
  background-color: #e6f0ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95em;
  border-left: 4px solid #003366;
}

.timer {
  color: #dc3545;
  font-weight: bold;
  margin-left: 5px;
}

.success-card {
  text-align: center;
  padding: 30px;
}

.success-card .icon {
  font-size: 4em;
  color: #28a745;
  margin-bottom: 20px;
}

.success-card h3 {
  color: #003366;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.success-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
}

.success-info strong {
  color: #003366;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.required {
  color: #dc3545;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #003366;
}

.btn {
  background-color: #003366;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  transition: background-color 0.3s;
  width: 100%;
  margin-bottom: 10px;
}

.btn:hover:not(:disabled) {
  background-color: #004080;
}

.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #5a6268;
}

.btn-link {
  background: none;
  color: #003366;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95em;
}

.btn-link:hover {
  color: #004080;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 500;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.login-actions {
  margin-top: 20px;
  margin-bottom: 20px;
}

.action-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
}

.action-link:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-color: #003366;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,51,102,0.15);
}

.action-link .icon {
  font-size: 1.2em;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(0,51,102,0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.action-content {
  flex: 1;
  text-align: left;
}

.action-title {
  font-weight: 600;
  color: #003366;
  margin-bottom: 2px;
  font-size: 0.95em;
}

.action-subtitle {
  font-size: 0.85em;
  color: #6c757d;
  margin: 0;
}

.action-link .arrow {
  font-size: 1.1em;
  color: #003366;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.action-link:hover .arrow {
  transform: translateX(3px);
}

.forgot-link {
  background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
  border-color: #dadce0;
}

.forgot-link:hover {
  background: linear-gradient(135deg, #e8eaed 0%, #dadce0 100%);
  border-color: #5f6368;
}

.forgot-link .icon {
  background: rgba(95,99,104,0.15);
  color: #5f6368;
}

.register-link {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: #ced4da;
}

.register-link:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-color: #6c757d;
}

.register-link .icon {
  background: rgba(108,117,125,0.15);
  color: #6c757d;
}

.info-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-icon {
  font-size: 1.3em;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border-radius: 10px;
  color: white;
}

.info-card h4 {
  margin: 0;
  color: #003366;
  font-size: 1.1em;
  font-weight: 600;
}

.info-card p {
  margin: 0 0 20px 0;
  font-size: 0.95em;
  line-height: 1.5;
  color: #555;
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e0e0e0;
}

.divider span {
  background-color: white;
  padding: 0 15px;
  color: #666;
  font-size: 0.9em;
}

.hidden {
  display: none;
}

/* Estilos para header de recuperación de contraseña */
.forgot-header {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  color: white;
  padding: 52px 40px 28px 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  margin: -30px -30px 20px -30px;
  border-radius: 12px 12px 0 0;
}

.forgot-header.hidden {
  display: none;
}

.back-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-2px);
}

.forgot-header-content {
  flex: 1;
  min-width: 0;
}

.forgot-header-content h2 {
  margin: 0 0 8px 0;
  font-size: 1.4em;
  font-weight: 600;
  line-height: 1.2;
}

.forgot-header-content p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95em;
  line-height: 1.3;
}

.forgot-content {
  padding: 0;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .container {
    margin: 20px;
    max-width: none;
  }
  
  .header-section, .form-section {
    padding: 20px;
  }

  .logo-title {
    flex-direction: column;
    gap: 8px;
  }

  .logo-title h1 {
    font-size: 1.1em;
    text-align: center;
  }

  .step-indicator {
    gap: 8px;
  }
  
  .step {
    width: 25px;
    height: 25px;
    font-size: 0.8em;
  }
}
/* ========================================
   AÑADIR ESTAS REGLAS AL FINAL DE login.css
   ======================================== */

/* ========================================
   INFORMACIÓN DE REQUISITOS PARA REGISTRO
   ======================================== */

.requisitos-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #003366;
}

.requisitos-info h4 {
  margin: 0 0 15px 0;
  color: #003366;
  font-size: 1.05em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.requisitos-info ul {
  margin: 15px 0;
  padding-left: 0;
  list-style-type: none;
}

.requisitos-info li {
  margin: 8px 0;
  color: #555;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.requisitos-info li::before {
  content: '✓';
  color: #28a745;
  font-weight: bold;
  font-size: 1.1em;
  flex-shrink: 0;
}

.ayuda-contacto {
  background: linear-gradient(135deg, #e6f0ff 0%, #cce7ff 100%);
  border: 1px solid #b8daff;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0 0 0;
  font-size: 0.9em;
  color: #004085;
  border-left: 4px solid #0066cc;
}

.ayuda-contacto strong {
  color: #002752;
  font-weight: 600;
}

/* ========================================
   MENSAJES DE ERROR/ALERTA MEJORADOS
   ======================================== */

/* Actualizar estilos existentes de .alert */
.alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-weight: 500;
  font-size: 0.95em;
  line-height: 1.5;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.alert strong {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.alert br {
  margin: 6px 0;
  display: block;
  content: "";
}

.alert-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left-color: #dc3545;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border-left-color: #ffc107;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left-color: #28a745;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border-left-color: #17a2b8;
}

/* ========================================
   ESTILOS PARA PANTALLAS ESPECÍFICAS
   ======================================== */

/* Mejora para la información en el paso 1 del registro */
.registerStep1 .requisitos-info {
  order: -1; /* Aparece antes del formulario */
}

/* Ajustes para que los mensajes de error sean más visibles */
#messages {
  position: relative;
  z-index: 10;
}

#messages .alert {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE PARA MÓVILES
   ======================================== */

@media (max-width: 768px) {
  .requisitos-info {
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
  }
  
  .requisitos-info h4 {
    font-size: 1em;
    gap: 6px;
  }
  
  .requisitos-info li {
    font-size: 0.9em;
    gap: 6px;
  }
  
  .ayuda-contacto {
    padding: 12px;
    font-size: 0.85em;
  }
  
  .alert {
    padding: 12px 16px;
    font-size: 0.9em;
  }
  
  .alert strong {
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .requisitos-info {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .requisitos-info h4 {
    font-size: 0.95em;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .requisitos-info li {
    font-size: 0.85em;
    padding: 3px 0;
  }
  
  .ayuda-contacto {
    padding: 10px;
    font-size: 0.8em;
  }
  
  .alert {
    padding: 10px 12px;
    font-size: 0.85em;
    margin: 15px 0;
  }
}

/* ========================================
   MEJORAS ADICIONALES PARA UX
   ======================================== */

/* Destacar campos con error */
.form-group.error input {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.form-group.error input:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Mejorar el aspecto de los enlaces en los mensajes de error */
.alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.alert a:hover {
  text-decoration: none;
}

/* Icono para la información de requisitos */
.requisitos-info h4::before {
  content: '📋';
  font-size: 1.1em;
  margin-right: 4px;
}

/* Espaciado mejorado entre elementos */
.form-section > .requisitos-info:first-child {
  margin-top: 0;
}

.form-section > .alert:last-child {
  margin-bottom: 0;
}