/* Rediseño corporativo del acceso. Se activa únicamente en la vista de login. */
main.mt-0.main-content {
  --login-navy: #0b2342;
  --login-blue: #087fce;
  --login-cyan: #34aeea;
  --login-ink: #172b4d;
  --login-muted: #6b7a90;
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(52, 174, 234, .24), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(255, 173, 28, .16), transparent 25%),
    linear-gradient(135deg, #07172c 0%, var(--login-navy) 54%, #0d4775 100%);
}

main.mt-0.main-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 82%);
}

main.mt-0.main-content::after {
  content: "Powered by CODE TI";
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 15px;
  left: 0;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-align: center;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .26);
  text-transform: uppercase;
}

main.mt-0.main-content .page-header {
  position: relative;
  height: 100vh;
  min-height: 100vh !important;
  max-height: 100vh;
  padding: 48px 28px 88px;
  overflow: hidden;
  box-sizing: border-box;
}

main.mt-0.main-content .page-header::after {
  content: "© 2026 CODE TI · Todos los derechos reservados";
  position: absolute;
  z-index: 9;
  right: 20px;
  bottom: 37px;
  left: 20px;
  color: rgba(255, 255, 255, .64);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .045em;
  text-align: center;
}

main.mt-0.main-content .page-header > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1260px;
  height: 100%;
  padding: 0;
}

main.mt-0.main-content .page-header > .container > .row {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(520px, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  height: 100%;
  min-height: 0;
  margin: 0;
}

main.mt-0.main-content .page-header .row > .mx-auto.col-xl-4 {
  z-index: 3;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0 !important;
}

main.mt-0.main-content .card.card-plain {
  position: relative;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 70px rgba(2, 15, 35, .38);
}

main.mt-0.main-content .card.card-plain::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--login-blue), var(--login-cyan), #f6a915);
}

main.mt-0.main-content .card.card-plain .card-body {
  padding: 42px 38px 38px;
}

main.mt-0.main-content .card-body .text-start {
  position: relative;
  min-height: 54px;
  padding-top: 70px;
  margin-bottom: 26px;
}

main.mt-0.main-content .card-body .text-start::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 132px;
  height: 48px;
  background: url("/pantalla/asset/ico/favicon.png") left center / contain no-repeat;
}

main.mt-0.main-content .card-body .text-start::after {
  content: "SISTEMA DE TURNOS";
  position: absolute;
  top: 9px;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 11px;
  border: 1px solid rgba(8, 127, 206, .14);
  border-radius: 999px;
  background: rgba(8, 127, 206, .09);
  color: #0875bb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .105em;
}

main.mt-0.main-content .card-body .text-start h4 {
  margin-bottom: 9px;
  color: var(--login-ink);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.035em;
}

main.mt-0.main-content .card-body .text-start p {
  margin: 0;
  color: transparent;
  font-size: 0;
}

main.mt-0.main-content .card-body .text-start p::after {
  content: "Ingresa tus credenciales para acceder al sistema de turnos.";
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.6;
}

main.mt-0.main-content .card-body > br {
  display: none;
}

main.mt-0.main-content form .mb-3,
main.mt-0.main-content form .form-group {
  margin-bottom: 16px !important;
}

main.mt-0.main-content form .form-control {
  height: 54px;
  padding: 0 17px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--login-ink);
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

main.mt-0.main-content form .form-control:focus {
  border-color: var(--login-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 127, 206, .12);
}

main.mt-0.main-content form .input-group-text {
  min-width: 52px;
  justify-content: center;
  border-color: #d8e0ea;
  border-radius: 0 12px 12px 0;
  background: #f8fafc;
  color: #597086;
}

main.mt-0.main-content form .btn-info.btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #087fce, #075d9f) !important;
  box-shadow: 0 12px 26px rgba(8, 127, 206, .25);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .015em;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

main.mt-0.main-content form .btn-info.btn-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(8, 127, 206, .32);
  filter: brightness(1.05);
}

main.mt-0.main-content .page-header .row > .top-0.position-absolute {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto !important;
  min-height: 440px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

main.mt-0.main-content .page-header .row > .top-0.position-absolute::before {
  display: none;
  content: none;
}

main.mt-0.main-content .page-header .row > .top-0.position-absolute::after {
  display: none;
  content: none;
}

main.mt-0.main-content .page-header .row > .top-0.position-absolute img {
  content: url("/img/sistema-turnos.svg");
  position: relative;
  z-index: 2;
  display: block;
  width: 100% !important;
  max-width: 760px;
  height: auto !important;
  max-height: none;
  padding: 0;
  object-fit: contain;
  border: 0;
  border-radius: 34px;
  background: transparent;
  box-shadow: 0 30px 78px rgba(2, 15, 35, .28);
}

main.mt-0.main-content .page-header .row > .top-0.position-absolute > .mask,
main.mt-0.main-content .page-header .row > .top-0.position-absolute > h4,
main.mt-0.main-content .page-header .row > .top-0.position-absolute > p {
  display: none !important;
}

/* Alerta institucional de vencimiento de licencia */
.license-warning-popup {
  width: min(520px, calc(100vw - 32px)) !important;
  padding: 30px 32px 26px !important;
  border: 1px solid #e6edf4 !important;
  border-radius: 22px !important;
  box-shadow: 0 26px 70px rgba(13, 35, 66, .24) !important;
}

.license-warning-popup .swal2-title {
  padding-top: 8px;
  color: #172b4d;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.license-warning-popup .swal2-html-container {
  margin: 16px 0 0;
}

.license-summary {
  color: #5c6f82;
  text-align: left;
}

.license-welcome {
  margin: 0 0 16px;
  font-size: 14px;
  text-align: center;
}

.license-message {
  padding: 13px 16px;
  margin: 0;
  border: 1px solid #f4d996;
  border-radius: 12px;
  background: #fff8e6;
  color: #825b08;
  font-size: 15px;
  text-align: center;
}

.license-date {
  margin: 12px 0 20px;
  color: #53677b;
  font-size: 13px;
  text-align: center;
}

.license-contact-card {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
  border-radius: 14px;
  background: #edf7fd;
}

.license-contact-card > div {
  display: grid;
  gap: 2px;
}

.license-contact-card span {
  color: #718397;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.license-contact-card strong {
  color: #0b4f87;
  font-size: 17px;
  font-weight: 800;
}

.license-contact-card a:not(.license-whatsapp) {
  color: #385c78;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.license-whatsapp {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 9px;
  background: #128c5e;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.license-whatsapp:hover {
  background: #0d754e;
  color: #fff;
}
@media (max-width: 991.98px) {
  main.mt-0.main-content .page-header {
    padding: 34px 20px 74px;
  }

  main.mt-0.main-content .page-header > .container > .row {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    height: 100%;
    min-height: 0;
  }

  main.mt-0.main-content .page-header .row > .top-0.position-absolute {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  main.mt-0.main-content .page-header {
    padding: 20px 14px 66px;
  }

  main.mt-0.main-content .card.card-plain .card-body {
    padding: 34px 24px 28px;
  }

  main.mt-0.main-content::after {
    bottom: 16px;
    font-size: 10px;
  }
}
