@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  --white:#fff;
   --success-clr: #3cb878;
  --success-hvr: #059249;
  --error-clr: #fd5664;
  --error-hvr: #ff0016;
  --cancel-clr: #d4d9e5;
}
html,body{
  display: grid;
  height: 100%;
  width: 100%;
  place-items: center;
  background: #160303;
  /* background: linear-gradient(-135deg, #c850c0, #4158d0); */
}
::selection{
  background: #4158d0;
  color: #fff;
}
.wrapper {
  width: 90%; /* Se adapta al ancho disponible */
  max-width: 380px; /* No crece más allá de 380px */
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 15px 20px rgba(0,0,0,0.1);
  margin: 20px; /* Separación del borde */
}

@media (max-width: 400px) {
  .wrapper {
    width: 92%;
    padding: 12px;
  }

  /* Reduce espacio vertical en el encabezado */
  .wrapper .title {
    padding: 10px 5px;
  }

  .logo i {
    font-size: 22px;     /* Más pequeño en celular */
    margin-top: 5px;
    margin-bottom: 8px;  /* Reduce espacio */
  }

  .grand {
    font-size: 12px;     /* Reduce tamaño del título */
    margin-bottom: 4px;
  }

  .descr {
    font-size: 11px;     /* Más compacta */
    margin-bottom: 5px;
  }

  .field p{
    text-align: center;
    width: 100%;
  }
}


.wrapper .title{ 
  text-align: center;
  align-items: center; 
  justify-content: center;
  color: #fff;
  user-select: none;
  border-radius: 15px 15px 0 0;
  background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
}

.logo i {
    font-size: 27px;        
    margin-bottom: 15px;    
    margin-top: 10px;       
}

.grand {
    padding: 0 10px 10px 20px;
    font-size: 22px;       /* Título más grande */
    font-weight: 700;
    letter-spacing: 1px;
}

.descr {
    text-align: center;
    align-items: center;
    color: #312f2f;
    font-size: 14px;
    font-weight: 700;
    opacity: 0.85;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.wrapper form{
  padding: 0px 30px 50px 30px;
}
.wrapper form .field{
  height: 50px;
  width: 100%;
  margin-top: 10px;
  position: relative;
}
.wrapper form .field input{
  height: 100%;
  width: 100%;
  outline: none;
  font-size: 17px;
  padding-left: 20px;
  border: 1px solid lightgrey;
  border-radius: 25px;
  transition: all 0.3s ease;
}




.wrapper form .field input:focus,
form .field input:not(:placeholder-shown) ~ label{
  border-color: #4158d0;
}
.wrapper form .field label{
  position: absolute;
  top: 50%;
  left: 20px;
  color: #999999;
  font-weight: 400;
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}
/* Mover label cuando el input tiene contenido o está en focus */
form .field input:focus ~ label,
form .field input:not(:placeholder-shown) ~ label {
  top: 0%;
  font-size: 14px;
  color: #4158d0;
  background: #fff;
  padding: 0 4px;   /* Opcional: para que no se junte al borde */
  transform: translateY(-50%);
}


form .field input[type="submit"]{
  color: #fff;
  border: none;
  padding-left: 0;
  margin-top: -10px;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  background-image: linear-gradient(to right, #000000 0%, #040505 100%);
  transition: all 0.3s ease;
}
form .field input[type="submit"]:active{
  transform: scale(0.95);
}


/* Estilos generales */
.wrapper form .field {
    height: 50px;
    width: 100%;
    margin-top: 20px;
    position: relative;
}

.wrapper form .field select {
    height: 100%;
    width: 100%;
    outline: none;
    font-size: 17px;
    padding-left: 20px;
    border: 1px solid lightgrey;
    border-radius: 25px;
    background: #fff;
    transition: all 0.3s ease;
    appearance: none; /* Quitar el estilo por defecto del navegador */
    cursor: pointer; /* Cambiar el cursor para indicar que es interactivo */
}

.wrapper form .field select:focus {
    border-color: #4158d0;
}

.wrapper form .field label {
    position: absolute;
    top: 50%;
    left: 20px;
    color: #999999;
    font-weight: 400;
    font-size: 17px;
    pointer-events: none;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    background: #fff; /* Fondo blanco para la etiqueta */
    padding: 0 5px; /* Espaciado interno para la etiqueta */
}

.wrapper form .field select:focus ~ label,
.wrapper form .field select:valid ~ label {
    top: 0%;
    font-size: 16px;
    color: #4158d0;
}

.wrapper form .field input[type="submit"] {
    color: #fff;
    border: none;
    padding-left: 0;
    margin-top: -10px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    background-image: linear-gradient(to right, #0c0f11 0%, #464444 100%);
    transition: all 0.3s ease;
}

.wrapper form .field input[type="submit"]:active {
    transform: scale(0.95);
}

/* Estilo específico para el select */
.wrapper form .field select {
    background: #fff; /* Fondo blanco */
    border: 1px solid lightgrey;
    border-radius: 25px; /* Bordes redondeados */
    padding: 0 20px; /* Espaciado interno */
    font-size: 17px;
    color: #333; /* Color del texto */
    cursor: pointer;
}

.wrapper form .field select:focus {
    border-color: #4158d0; /* Color del borde al enfocar */
}

.wrapper form .field select option {
    padding: 10px; /* Espaciado en las opciones */
}


