/* 
  ----------------------------------------------------
  RESET & BASE
  ----------------------------------------------------
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html,
  body {
    height: 100%;
    font-family: "Open Sans", "Montserrat", sans-serif;
    background: #fdfdfd;
    color: #333;
    overflow-x: hidden;
  }
  
  img {
    display: block;
    max-width: 100%;
    height: auto;
    border: none;
  }
  
  a {
    text-decoration: none;
    /* Cambiamos el color de enlace a un tono turquesa */
    color: #00a3ad;
    transition: color 0.3s ease-in-out;
  }
  
  a:hover {
    /* Al pasar el mouse, oscurecemos un poco */
    color: #00848c;
  }
  

  /* 
    ----------------------------------------------------
    LOGIN CONTAINER
    ----------------------------------------------------
  */
  .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #fff;
  }
  
  /* 
    ----------------------------------------------------
    BACKGROUND SHAPES (formas de fondo)
    ----------------------------------------------------
  */
  .background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  /* 
     Ajustamos los colores de relleno a tonos turquesa/azulados 
     con opacidad ligera para que sean sutiles 
  */
  .shape-1 {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 150%;
    height: auto;
    opacity: 0.25;
    /* un poco más sutil */
    transform: rotate(45deg);
  }
  
  .shape-1 path {
    fill: #b3ecf0;
    /* tono turquesa claro */
  }
  
  .shape-2 {
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 150%;
    height: auto;
    opacity: 0.25;
    transform: rotate(-30deg);
  }
  
  .shape-2 path {
    fill: #daf8fc;
    /* otro tono aún más claro */
  }
  
  /* 
    ----------------------------------------------------
    LOGIN CARD
    ----------------------------------------------------
  */
  .login-card {
    position: relative;
    background: #ffffff;
    width: 400px;
    max-width: 90%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 40px 30px;
    z-index: 2;
    text-align: center;
  }
  
  /* Logo */
  .logo img {
    width: 80px;
    margin: 0 auto 20px;
  }
  
  /* Título */
  .login-card h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: #00464b;
    /* un turquesa oscuro para contraste */
  }
  
  .subtitle {
    font-size: 0.95rem;
    color: #555;
  }
  
  /* 
    ----------------------------------------------------
    FORM
    ----------------------------------------------------
  */
  .login-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  
  /* 1) Contenedor de cada input (posición relativa para el label flotante) */
  .input-group {
    position: relative;
    margin-bottom: 1rem;
  }
  
  /* 2) El input ahora NO muestra placeholder visible (placeholder=" "), 
     pero lo usamos para el pseudo-selecor :placeholder-shown */
  .input-group input {
    display: block;
    width: 100%;
    border: 1px solid #cfeff2;
    border-radius: 8px;
    background-color: #f8ffff;
    padding: 12px 16px 8px;
    /* un extra top/bottom para el label */
    font-size: 0.95rem;
    font-family: "Open Sans", "Montserrat", sans-serif;
    color: #333;
    transition: border-color 0.3s ease-in-out, background-color 0.3s;
    /* Truco para que :placeholder-shown funcione bien en todos los navegadores */
    line-height: 1.2;
  }
  
  /* Efecto al hacer focus: cambiamos color de borde, etc. */
  .input-group input:focus {
    outline: none;
    border-color: #00a3ad;
    background-color: #ffffff;
  }
  
  /* 3) Label flotante (posición absoluta sobre el input) */
  .input-group label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    background: #fff;
    /* el fondo que tapa el borde del input */
    color: #444;
    font-size: 0.82rem;
    font-weight: 300;
    pointer-events: none;
    /* para que no interfiera en el click */
    padding: 0 4px;
    /* un poquito de padding a los lados */
    transition: 0.2s ease all;
  }
  
  /* 4) Cuando el input está en focus O cuando NO está vacío 
     (i.e. :valid en campos type="email"/"password" con required, 
      o :not(:placeholder-shown) si prefieres un approach universal) 
     => movemos y reducimos el label.  
  */
  .input-group input:focus+label,
  .input-group input:valid+label,
  .input-group input:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: #00a3ad;
    /* resaltamos el label con el turquesa */
  }
  
  /* Asterisco en rojo (opcional) */
  .gl-form-asterisk {
    color: #e32b2b;
    font-weight: normal;
    /* si deseas reemplazar por "::after { content: '*' }", 
       lo puedes hacer directamente en .gl-form-asterisk */
  }
  
  /* 
    ----------------------------------------------------
    OPTIONS (Remember & Forgot)
    ----------------------------------------------------
  */
  .options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
  }
  
  .remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .remember-me input {
    cursor: pointer;
  }
  
  .forgot-password a {
    color: #888;
    font-weight: 600;
  }
  
  .forgot-password a:hover {
    color: #666;
  }
  
  /* 
    ----------------------------------------------------
    BUTTON (Log In)
    ----------------------------------------------------
  */
  .btn-login {
    /* Gradiente turquesa */
    background: linear-gradient(135deg, #00c2cb, #00afb7);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 0;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
  }
  
  .btn-login:hover {
    background: linear-gradient(135deg, #00afb7, #00979f);
    transform: translateY(-1px);
  }
  
  /* 
    ----------------------------------------------------
    SIGN UP TEXT
    ----------------------------------------------------
  */
  .signup-text {
    margin-top: 1rem;
    font-size: 0.85rem;
  }
  
  .signup-text a {
    font-weight: 600;
  }
  
  /* 
    ----------------------------------------------------
    RESPONSIVE
    ----------------------------------------------------
  */
  @media (max-width: 768px) {
    .login-card {
      width: 90%;
      padding: 30px 20px;
    }
  
    .login-card h1 {
      font-size: 1.5rem;
    }
  
    .btn-login {
      font-size: 0.95rem;
      padding: 12px 0;
    }
  }
  
  @media (max-width: 480px) {
    .options {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  }