/* =============================== */
/* = ESTILOS GENERALES = */
/* =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
  }
  
  /* =============================== */
  /* = CONTENEDOR PRINCIPAL = */
  /* =============================== */
  
  .auth-container {
    display: flex;
    width: 100%;
    height: 80vh; /* 🔥 Toda la altura visible del navegador */
    max-width: 1200px;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }
  
  /* =============================== */
  /* = COLUMNA DE LA IMAGEN = */
  /* =============================== */
  
  .auth-image {
    flex: 1;
    height: 100%; /* 🔥 Hace que ocupe todo el alto */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
    background-color: #eee;
  }
  
  .auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .auth-logo {
    text-align: center;
    margin-bottom: 1.5rem; /* Espacio debajo del logo */
  }
  
  .auth-logo img {
    height: 40px; /* Puedes ajustar el tamaño según se vea */
    object-fit: contain;
  }
  
  /* =============================== */
  /* = FORMULARIO = */
  /* =============================== */
  
  .auth-form {
    flex: 1;
    max-width: 400px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* 🔥 Hace match con la altura del contenedor */
    margin: 0 auto;
  }
  
  .auth-form h1 {
    font-size: 2rem;
    font-family: "Russo One", sans-serif;
    font-weight: 200;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #111;
  }
  
  .auth-form p {
    color: #555;
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }
  
  /* =============================== */
  /* = CAMPOS DEL FORMULARIO = */
  /* =============================== */
  
  .auth-form label {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #333;
  }
  
  .auth-form input[type="text"],
  .auth-form input[type="email"],
  .auth-form input[type="password"] {
    padding: 0.75rem;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    width: 100%;
    transition: border 0.2s ease;
  }
  
  .auth-form input:focus {
    outline: none;
    border-color: #000;
  }


  /* ============================ */
/* = LOGO EN FORMULARIOS = */
/* ============================ */
.logo-formulario {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .logo-formulario img {
    margin-top: 4rem;
    height: 40px;       /* Ajusta el tamaño del logo */
    object-fit: contain;
  }
  
  /* =============================== */
  /* = BOTÓN PRINCIPAL = */
  /* =============================== */
  
  .auth-form button {
    background-color: #000;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
    display: block;
    margin: 1.5rem auto 1rem auto; /* ← Centrado horizontal */
  }
  
  .auth-form button:hover {
    background-color: #333;
  }
/* ========================= */
/* = Botón externo centrado debajo = */
/* ========================= */
.volver-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-volver-externo {
  color: #0030cc;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}

.btn-volver-externo:hover {
  text-decoration: underline;
}
  
  /* ============================ */
/* = ESPACIADO ENTRE LABEL E INPUT = */
/* ============================ */
.auth-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem; /* Espacio entre el label y el input */
    font-size: 0.95rem;
  }
  
  .auth-form input {
    display: block;
    width: 100%;
    padding: 0.7rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
  }
  
  /* =============================== */
  /* = LINK DE ABAJO = */
  /* =============================== */
  
  .auth-link {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
  }
  
  .auth-link a {
    color: #0030cc;
    text-decoration: none;
  }
  
  .auth-link a:hover {
    text-decoration: underline;
  }
  
  /* =============================== */
  /* = TÉRMINOS Y CONDICIONES = */
  /* =============================== */
  
  .form-terms {
    display: flex;
    align-items: center;
    justify-content: center; /* ← Centrado con el botón */
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
  
  }
  
  .form-terms label {
    font-weight: 400;
    color: #555;
  }
  
  .form-terms a {
    color: #0030cc;
    text-decoration: none;
  }
  
  .form-terms a:hover {
    text-decoration: underline;
  }

  
.form-terms input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1); /* Tamaño cómodo */
  }
  
  /* =============================== */
  /* = RESPONSIVE = */
  /* =============================== */
  
  @media (max-width: 960px) {
    .auth-container {
      flex-direction: column;
      max-width: 60vw;
      height: auto; /* Deja que el contenido crezca naturalmente */
    }
  
    .auth-image {
      width: 100%;
      height: 220px; /* Altura reducida en móvil */
    }
  
    .auth-image img {
      height: 20vh;
      object-fit: cover;
    }
  
    .auth-form {
      padding: 2rem 1.5rem;
      max-width: 100%;
      text-align: center;
    }
  
    .auth-form h1 {
      font-size: 1.8rem;
    }
  
    .auth-form p {
      font-size: 0.9rem;
    }
  
    .auth-form label {
      text-align: left;
      font-size: 0.9rem;
    }
  
    .auth-form input {
      font-size: 0.95rem;
    }
  
    .auth-form button {
      width: 100%;
    }
  
    .form-terms {
      flex-direction: column;
      text-align: center;
      font-size: 0.85rem;
    }
  
    .volver-wrapper {
      text-align: center;
      margin-top: 1rem;
    }
  
    .btn-volver-externo {
      display: inline-block;
      font-size: 0.9rem;
      color: #052079;
      text-decoration: none;
      margin-top: 1rem;
    }
  
    .btn-volver-externo:hover {
      text-decoration: underline;
    }
  }
  
  