/* ---------------------- BASE ----------------------- */
@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;
}

html, body {
    height: 100%;
    width: 100%;
    background: #d8d8d8;
}

body.inicio {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: url('../../Imagenes/imagen_login.png') no-repeat center center;
    background-size: cover;
}

/* Selección de texto */
::selection{
  background: #4158d0;
  color: #fff;
}

/* ---------------------- LOGIN / REGISTRO ---------------------- */

.wrapper{
  width: 550px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 15px 20px rgba(0,0,0,0.1);
}

/* LOGO A LOS LADOS */

.wrapper .title{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;

  font-size: 35px;
  font-weight: 600;
  color: white;
  height: 130px; /* ALTURA DONDE VAN LOS LOGOS */

  border-radius: 15px 15px 0 0;
  background: linear-gradient(-135deg,#36db89,#39a84a);
}

.logo-corporativo{
    width:120px;
    height:auto;
    margin-bottom:5px;
}

.texto-titulo{
    font-size:32px;
    font-weight:600;
    color:white;
}

.texto-titulo:hover {
    background: none;
    border-radius: 5px;
    transform:scale(1.25);
}

/* LOGO RECUPERAR CONTRASEÑA */

/* CABECERA VERTICAL (logo arriba, texto debajo) */

.wrapper .title-vertical{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: 180px;
    gap: 10px;

    border-radius: 15px 15px 0 0;
    background: linear-gradient(-135deg, #36db89, #39a84a);
}

.title-vertical .logo-corporativo{
    width: 120px;
    height: auto;
    margin: 0;
}

.title-vertical .texto-titulo{
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.title-vertical .texto-titulo:hover{
    background: none;
    transform: scale(1.08);
}

/*=============================*/


.wrapper form{
  padding: 10px 30px 50px 30px;
}

.texto-ayuda-registro{
  margin: 18px 4px 8px;
  color: #555;
  text-align: center;
  line-height: 1.5;
}

.wrapper form .field input:disabled{
  cursor: not-allowed;
  opacity: .6;
}

.wrapper form .field{
  height: 60px;
  width: 100%;
  margin-top: 10px;
  position: relative;
}

.wrapper form .field input,
.wrapper form .field select{
  height: 100%;
  width: 100%;
  outline: none;
  font-size: 17px;
  padding-left: 20px;
  border: 1px solid lightgrey;
  border-radius: 25px;
  transition: 0.3s;
  background: #fff;
}

.wrapper form .field input:focus,
.wrapper form .field input:valid{
  border-color: #278e61;
}

.wrapper form .field label{
  position: absolute;
  top: 50%;
  left: 20px;
  color: #999;
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: 0.3s;
}

form .field input:focus ~ label,
form .field input:valid ~ label{
  top: 0%;
  font-size: 16px;
  color: #2b8d2d;
  background: #fff;
  padding: 0 5px;
}

form .content{
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: space-around;
}

form .content input{
  width: 15px;
  height: 15px;
}

form .field input[type="submit"]{
  color: #fff;
  border: none;
  margin-top: -10px;
  font-size: 20px;
  cursor: pointer;
  background: linear-gradient(-135deg,  #36db89, #39a84a);
  transition: 0.3s;
}

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

form .pass-link a{
  color: #4158d0;
}

.pass-link:hover {

  transform:scale(1.5);
  
}

form .signup-link a{
  color: #4158d0;
  margin-left: 10px;
 
}

.signup-link:hover {

  display: inline-block;
  transform:scale(1.5);
  transform-origin: left center;/* Crece desde la izquierda */
}

/* ---------------------- ALERTA MODERNA INTEGRADA ---------------------- */
.wrapper .mensaje-alerta {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #fff9f0, #fff4e5); /* degradado suave */
    border: 1px solid #ffb74d; /* borde naranja */
    padding: 18px 22px;
    border-radius: 12px;
    color: #8a4b00; /* texto marrón oscuro */
    font-weight: 600;
    font-size: 15px;
    margin: 20px 20px 15px 20px; /* separaciones: arriba, lateral, abajo */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.wrapper .mensaje-alerta .icono {
    font-size: 42px; /* icono más visible */
    margin-right: 12px;
    flex-shrink: 0;
}

.wrapper .mensaje-alerta p {
    margin: 0;
    line-height: 1.5;
    text-align: center;
    flex: 1;
    word-wrap: break-word; /* asegura que los textos largos se ajusten */
}
