html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* evita scroll */
}
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&display=swap');


.login-frase {
  font-family: 'Pacifico', cursive;
  font-size: 15px;
  text-align: center;
  color: #ffffff;
  margin: 20px 0;
  line-height: 1.4;
  margin-bottom: 30px;
}
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* ocupa el 100% de la altura exacta de la pantalla */
  width: 100vw;  /* ocupa el 100% del ancho exacto */
  background: url('../img/BackLoginFarma.jpg') no-repeat center center;
  background-size: cover;
}

.content::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* oscurece la foto */
  backdrop-filter: blur(3px);  /* difumina el fondo */
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.container-login {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  width: 85vw;
  height: 85vh;
  max-width: 90vw;
  max-height: 90vh;
  padding: 0; /* quitamos padding general para que no afecte columnas */
  background: url('../img/BackLoginFarma.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3), 0 5px 20px rgba(0,0,0,0.2);
  z-index: 10;
  overflow: hidden;
}


.login-logo {
  display: block;
  margin: 0 auto; /* centrado con espacio abajo */
  max-width: 250px;  /* tamaño máximo de la imagen */
  height: auto;      /* mantiene proporción */
}

/* Parte izquierda (formulario) */
.left {
  flex: 3; /* más ancho */ /* más ancho que la derecha */
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  color: #ffffff;
  font-family: 'Bangers', cursive;
}
.right {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* solo difuminado del fondo */
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  border-radius: 0 20px 20px 0; /* redondeo solo lado derecho */
}


.container-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

.container-title p {
  font-size: 14px;
  color: #777;
}

/* Inputs */
.container-input {
  margin-bottom: 20px;
  margin-right: 10px;
}

.input-texto-arriba {
  width: 100%;
  padding: 10px 0;               /* espacio arriba y abajo */
  border: none;                  /* sin borde general */
  border-bottom: 2px solid #fff; /* línea inferior blanca */
  background: transparent;       /* fondo transparente */
  color: #fff;                   /* texto blanco */
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
}

.input-texto-arriba::placeholder {
  color: rgba(255, 255, 255, 0.7); /* placeholder semitransparente */
  font-size: 16px;
}

.input-texto-arriba:focus {
  border-bottom: 2px solid #0C3C60; /* cambia color al enfocar */
}

/* Botón */
.container-input button {
  width: 100%;
  padding: 14px;
  background: #020a0f;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.container-input button:hover {
  background: #282828;
}

/* Mensajes de error */
.invalid-feedback {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.portada {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-title {
  font-family: 'Bangers', cursive;
  font-size: 55px;           /* más grande que antes */
  font-weight: 700;
  margin-bottom: 5px;       /* más espacio debajo del título */
  text-align: center;
  letter-spacing: 15px;       /* separa las letras */
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5); /* resalta sobre el fondo */
}

.welcome-text {
  font-size: 24px;            /* un poco más grande */
  line-height: 1.6;
  letter-spacing: 1px;        /* ligera separación entre letras */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.right .container-input {
  width: 120%;  /* centrado y adaptable al ancho de la columna */
  margin: 0 auto 20px auto;
}

/* Los inputs y el botón ocupan todo el ancho de su contenedor */
.right .input-texto-arriba,
.right .container-input button {
  width: 100%;
  box-sizing: border-box; /* asegura que padding no afecte el ancho */
}


/* ======================= */
/* --- RESPONSIVE --- */
/* ======================= */
/* 🔹 Responsive */
@media (max-width: 768px) {
  .container-login {
    flex-direction: column;
    width: 95vw;
    height: auto;
    max-height: none;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
  }

  .left, .right {
    flex: none;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;  
    align-items: center;      
    text-align: center;
  }

  .right {
    border-top: 2px solid rgba(255,255,255,0.2);
    border-radius: 0 0 10px 10px;
  }

  .login-logo {
    max-width: 160px;
    margin-bottom: 15px;
  }

  .right .container-input {
    width: 90%;
    max-width: 320px;
  }

  .welcome-title {
    font-size: 38px;
    letter-spacing: 8px;
  }

  .welcome-text {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 26px;
    letter-spacing: 3px;
  }

  .welcome-text {
    font-size: 14px;
  }

  .container-input button {
    font-size: 14px;
    padding: 12px;
  }
}
