@charset "utf-8";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f7f6;
}

.login-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  flex-direction: row;
}

/* LADO IZQUIERDO: Imagen institucional (PC) */
.login-image-side {
  flex: 1.2;
  /* CAMBIA AQUÍ LA RUTA DE TU IMAGEN UNA SOLA VEZ */
  background: linear-gradient(rgba(203, 207, 209, 0), rgba(0, 0, 0, 0.75)), url('../images/fbm.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  color: white;
}

.login-image-side h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.login-image-side p {
  font-size: clamp(14px, 2vw, 16px);
  opacity: 0.95;
  line-height: 1.6;
  max-width: 500px;
}

/* LADO DERECHO: Formulario */
.login-form-side {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 10;
  overflow-y: auto;
}

.form-login h3 {
  font-size: 26px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-subtitle {
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 25px;
}

.input-group-addon {
  background-color: #f8f9fa;
  border-color: #ccc;
  color: #017bab;
}

.form-control {
  height: 48px;
  font-size: 15px;
  border-radius: 0 6px 6px 0 !important;
}

.input-group .form-control:first-child {
  border-radius: 6px 0 0 6px !important;
}

.input-group {
  margin-bottom: 20px;
  width: 100%;
}

.btn-primary, .btn-success {
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.btn-primary {
  background-color: #017bab;
  border-color: #015a7d;
}

.btn-primary:hover {
  background-color: #015a7d;
  border-color: #013f56;
}

.links-container {
  margin-top: 25px;
  text-align: center;
}

.links-container a {
  color: #017bab;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  margin: 6px 0;
  transition: color 0.2s;
}

.links-container a:hover {
  color: #013f56;
  text-decoration: underline;
}

.footer-login {
  margin-top: 35px;
  text-align: center;
  color: #95a5a6;
  font-size: 12px;
  border-top: 1px solid #ecf0f1;
  padding-top: 15px;
}

.codigo-input {
  text-align: center;
  letter-spacing: 8px;
  font-size: 22px !important;
  font-weight: bold;
}

/* ADAPTABILIDAD MÓVIL (Fondo completo + Tarjeta flotante) */
@media (max-width: 992px) {
  body {
    /* CAMBIA AQUÍ TAMBIÉN LA RUTA DE TU IMAGEN PARA CELULARES */
    background: linear-gradient(rgba(203, 207, 209, 0), rgba(0, 0, 0, 0.85)), url('../images/fbm.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  .login-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
  }
  .login-image-side {
    display: none; 
  }
  .login-form-side {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    padding: 35px 25px;
    margin: auto;
  }
  .login-form-side h3 {
    text-align: center;
    color: #017bab;
  }
  .form-subtitle {
    text-align: center;
  }
}