/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-color: #17288a;
    --secondary-color: #26d0ce;
    --danger-color: #ff416c;
    --warning-color: #ff4b2b;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition-base: all 0.3s ease;
    --shadow-light: 0 0 32px 0 rgba(172, 173, 197, 0.623);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* ===== ANIMACIONES ===== */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* ===== BASE Y FONDO ===== */
  body {
    background: linear-gradient(135deg, #1a446c, #7c750d, #1a446c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  /* ===== CONTENEDOR PRINCIPAL ===== */
  .registro-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }
  
  /* ===== FORMULARIO ===== */
  .registro-form {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    padding: 40px;
    animation: slideIn 0.8s ease-out forwards;
    text-align: center;
  }
  
  .logo {
    display: block;
    margin: 0 auto 30px;
  }
  
  .logo img {
    max-width: 100%;
    height: auto;
  }
  
  /* ===== ALERTAS ===== */
  .alert {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 1rem;
    text-align: center;
  }
  /* Mensaje de alerta al iniciar */
  .alert-info {
    background: rgba(47, 112, 197, 0.589);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
    color: var(--text-light);
  }
  
  .alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ffccd5;
    margin-top: 10px;
  }
  
  /* ===== FORM GROUP ===== */
  .form-group {
    margin-bottom: 25px;
    text-align: left;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  }
  
  .form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-base);
  }
  
  .form-control::placeholder {
    color: rgba(255, 255, 255, 0.822);
  }
  
  .form-control:focus {
    outline: none;
    background: rgba(93, 236, 80, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
  }
  /* Estilos para contenido debajo de los label "ingrese nombre / contraseña" */
  .invalid-feedback {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 0.9rem;
  }
  
  /* ===== BOTONES ===== */
  .btn-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  
  .btn {
    padding: 8px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-medium);
  }
  
  .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
  }
  
  .btn-danger {
    background: linear-gradient(45deg, var(--danger-color), var(--warning-color));
    color: white;
  }
  
  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
  
  .btn:active {
    transform: translateY(-1px);
  }
  
  /* ===== ENLACES ===== */
  .auth-links {
    margin-top: 30px;
    font-size: 0.95rem;
  }
  
  .auth-links p {
    margin-bottom: 10px;
  }
  
  .auth-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    /* transition: var(--transition-base); */
  }
  
  .auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition-base);
  }
  
  .auth-links a:hover::after {
    width: 100%;
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 992px) {
    .registro-container {
      gap: 20px;
    }
    
    .registro-form {
      padding: 30px;
    }
  }
  
  @media (max-width: 768px) {
    .registro-container {
      flex-direction: column;
    }
    
    .registro-form {
      width: 100%;
      max-width: 100%;
    }
  }