/* =====================================================
   LOGIN SYSTEM - HOSPIFILE
   Reutilizable para login / forgot / reset / etc
===================================================== */

/* =========================
   BACKGROUND
========================= */
.login-page {
  background: url('../../../../assets/img/fondo02.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(13, 35, 55, 0.58);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  z-index: 0;
}

/* =========================
   CONTAINER
========================= */
.login-box {
  width: 380px;
  position: relative;
  z-index: 1;
}

/* =========================
   LOGO
========================= */
.login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-image {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: inline-block;
  margin-bottom: .35rem;
}

.brand-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #263847;
  line-height: 1.2;
  letter-spacing: .3px;
  text-shadow:
    0 1px 2px rgba(255,255,255,.45),
    0 0 6px rgba(255,255,255,.25);
}

/* =========================
   CARD
========================= */
.card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(13, 35, 55, 0.24);
  background: rgba(255,255,255,.96);
}

.login-card-body {
  border-radius: 1rem;
  padding: 2rem;
}

/* =========================
   TEXTS
========================= */
.login-box-msg {
  font-size: 1rem;
  font-weight: 700;
  color: #3f4b57;
  margin-bottom: 1rem;
  text-align: center;
}

.login-box-desc {
  font-size: .95rem;
  color: #6c757d;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* =========================
   ALERTS
========================= */
.alert-login {
  border-radius: .75rem;
  font-size: .95rem;
  margin-bottom: 1rem;
}

/* =========================
   INPUTS
========================= */
.form-control {
  height: 46px;
}

.input-group-text {
  min-width: 46px;
  justify-content: center;
}

/* =========================
   BUTTON
========================= */
.btn-primary {
  height: 46px;
  font-weight: 700;
  border: 0;
  background: linear-gradient(135deg, #1e76e8, #0d55c8);
  box-shadow: 0 8px 18px rgba(13, 85, 200, .22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1a68ce, #0b48ab);
}

.btn-primary:disabled {
  background: #8fb9ee;
  box-shadow: none;
}

/* =========================
   STATUS (LOGIN GEO)
========================= */
.estado-ubicacion-ok {
  color: #16a37c;
  font-weight: 700;
}

.estado-ubicacion-error {
  color: #dc3545;
  font-weight: 700;
}

.estado-ubicacion-wait {
  color: #6c757d;
  font-weight: 600;
}

/* =========================
   LANGUAGE SELECTOR
========================= */
.lang-global {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 9999;
}

.lang-global .btn {
  border-radius: 999px;
  padding: .3rem .7rem;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  background: rgba(255,255,255,.94);
}

.lang-global .dropdown-menu {
  border-radius: .75rem;
  font-size: .9rem;
}

/* =========================
   LINKS
========================= */
.login-link {
  text-align: center;
  margin-top: 1rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 576px) {
  .login-box {
    width: 92%;
  }

  .brand-image {
    max-width: 200px;
  }

  .brand-subtitle {
    font-size: 1.25rem;
  }

  .login-card-body {
    padding: 1.5rem;
  }

  .lang-global {
    top: 10px;
    right: 10px;
  }
}