/* ----- Estilos generales ----- */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Contenedor centrado */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Card con efecto vidrio */
.login-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border-radius: 20px;
  padding: 40px;
  width: 350px;
  max-width: 100%;
  animation: fadeIn 0.8s ease;
  box-sizing: border-box;
  transition: width 0.3s ease;
}

/* Contenido interno del card */
.login-content {
  display: flex;
  flex-direction: column; /* Móvil: columna */
  align-items: center;
  gap: 20px;
}

/* ----- Sección de formulario ----- */
.login-form {
  width: 100%;
}

/* Input con icono */
.input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.input-group .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #0971CE;
  font-size: 18px;
}

.input-group input {
  width: 100%;
  padding: 12px 40px 12px 38px;
  border-radius: 12px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-group input:focus {
  border-color: #0971CE;
  box-shadow: 0 0 8px rgba(9,113,206,0.3);
}

/* Toggle de contraseña */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #0971CE;
}

/* Botón de acceder */
.btn-login {
  width: 100%;
  padding: 12px;
  border: none;
  background: #0971CE;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: #085aaa;
  transform: scale(1.03);
}

/* ----- Sección de información (icono + título + subtítulo) ----- */
.login-info {
  text-align: center;
  order: -1; /* Solo aplica en móviles */
}

.profile-icon {
  font-size: 90px;
  color: #0971CE;
  margin-bottom: 10px;
}

.login-title {
  text-align: center;
  margin-bottom: 5px;
  font-size: 24px;
  font-weight: bold;
  color: #0971CE;
}

.login-subtitle {
  text-align: center;
  margin-bottom: 25px;
  font-size: 14px;
  color: #444;
}

/* Enlaces */
.helper-text {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.helper-text a {
  color: #0971CE;
  text-decoration: none;
  font-weight: bold;
}

.helper-text a:hover {
  text-decoration: underline;
}

/* Toast personalizado */
.custom-toast {
  display: none;
  background: #f3f4f5;
  position: fixed;
  z-index: 9999;
  top: 20px;
  right: 20px; /* agregado para móviles */
  left: auto;   /* agregado para móviles */
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  max-width: 90%;
  width: auto;
  animation: slideIn 0.4s ease;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .custom-toast {
    /* ya no hace falta cambiar left/right aquí */
  }
}

/* Contenido del toast */
.custom-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.custom-toast-content i {
  font-size: 24px;
}

/* Animación */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Desktop: esquina superior derecha */
@media (min-width: 768px) {
  .custom-toast {
    left: auto;
    right: 20px;
    top: 20px;
    transform: none;
  }
}

/* Colores por tipo */
.toast-error i {
  color: #FF4C4C;
}

.toast-warning i {
  color: #FFA500;
}

.toast-success i {
  color: #28A745;
}

/* ----- Vista Desktop ----- */
@media (min-width: 768px) {
  .login-card {
    width: 650px;
  }

  .login-content {
    flex-direction: row; /* filas */
    justify-content: flex-start; /* formulario izquierda */
    align-items: center; /* centrado vertical */
    gap: 40px;
  }

  .login-form {
    width: 50%;
    order: 0; /* izquierda */
  }

  .login-info {
    width: 50%;
    order: 1; /* derecha */
    display: flex;
    flex-direction: column;
    align-items: center; /* icono y textos centrados horizontalmente */
    justify-content: center; /* centrado vertical */
  }

  .profile-icon {
    font-size: 117px;
    margin-bottom: 1px;
  }

  .login-title {
    font-size: 26px;
    margin-bottom: 1px;
    text-align: center;
  }

  .login-subtitle {
    font-size: 15px;
    text-align: center;
  }
}
