

  /* Contenedor del fondo en login <!-- FONDO GENERAL --> */
  #back.login-bg {
    position: relative;
    min-height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center;

    /* Fallback: degradado */
    background: linear-gradient(to bottom right, #f2ebe3, #dbcab4);

    /* Fondo con imagen + degradado sutil encima */
    background-image:
      linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)),
      url('vistas/img/plantilla/fondo.png');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* Opcional: efecto fijo */
    background-attachment: fixed;
  }

  /* Tarjeta unificada (logo + formulario) */
  .login-card {
    width: 430px;
    max-width: 95%;
    background: rgba(255,255,255,0.94);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0,0,0,.22);
    overflow: hidden;                 /* une borde del header y body */
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  /* Encabezado con el logo dentro del mismo cuadro */
  .login-card__header {
    padding: 26px 26px 0;
    text-align: center;
  }
  .login-card__logo {
    width: 220px;       /* ajústalo si quieres más grande */
    max-width: 90%;
    height: auto;
    display: inline-block;
  }

  /* Cuerpo del formulario dentro del mismo cuadro */
  .login-card__body {
    padding: 24px 26px 26px;
  }

  /* Título */
  .login-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #4E342E;
    margin: 6px 0 18px;
  }

  /* Inputs y botón */
  .form-control.input-lg {
    font-size: 16px; 
    padding: 14px; 
    border-radius: 10px;
  }
  .toggle-password {
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    border: none; 
    background: transparent; 
    font-size: 20px; 
    line-height: 1;
  }
  .btn-login-primary {
    background-color: #8D6E63; 
    color: #fff; 
    font-size: 18px; 
    padding: 12px; 
    border-radius: 10px;
  }
  .btn-login-primary:hover { filter: brightness(1.05); }

  /* Botón de asistencia dentro del mismo cuadro */
  .btn-asistencia {
    font-size: 16px; 
    padding: 11px; 
    border-radius: 10px;
  }

