/* Identidad corporativa Airlife — pantalla de acceso (presentación únicamente).
   Reutiliza los tokens y recursos HD transparentes del sitio junto con la
   fuente del shell. */

:root {
  --auth-cyan: #00add8;
  --auth-cyan-active: #009bc2;
  --auth-cyan-edge: #81ddf3;
  --auth-ink: #0b2b33;
  --auth-muted: #5b7078;
  --auth-field: #ffffff;
  --auth-line: rgba(0, 155, 194, .2);
  --auth-shadow: 0 14px 34px rgba(0, 121, 153, .16);
  --auth-motion: .25s ease;
}

html, body { min-height: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--auth-ink);
  background: #eaf7fb !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 56px);
  background: linear-gradient(160deg, #e6f6fa 0%, #f7fcfd 55%, #dceff4 100%);
}

/* Marca de agua corporativa (molinillo oficial) detrás del panel. */
.auth-page::after {
  content: '';
  position: absolute;
  right: -70px;
  top: 50%;
  width: 178px;
  height: 204px;
  background: var(--auth-cyan);
  -webkit-mask: url('/static/assets/img/airlife-molinillo-white-hd.png') center / contain no-repeat;
  mask: url('/static/assets/img/airlife-molinillo-white-hd.png') center / contain no-repeat;
  opacity: .12;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, 480px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--auth-field);
  box-shadow: var(--auth-shadow);
  animation: auth-enter var(--auth-motion) both;
}

/* Columna decorativa: color corporativo + logo + molinillo. */
.auth-intro {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(40px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(140deg, #00add8 0%, #009bc2 100%);
}

.auth-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0, 117, 147, .22), transparent 55%);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #fff;
  text-decoration: none;
}

.auth-brand:hover { color: #fff; }

.auth-brand small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.auth-brand b {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.auth-logo {
  width: 102px;
  height: 50px;
  display: block;
  object-fit: contain;
  object-position: left center;
  opacity: .98;
}

.auth-intro-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: auto 0;
  padding: 44px 0;
}

.auth-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--auth-cyan-edge);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.auth-intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 4.2vw, 3.7rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.auth-intro h1 em { font-style: normal; font-weight: 700; }

.auth-intro-copy p {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  line-height: 1.6;
}

.auth-trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 12px;
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  font-weight: 600;
}

.auth-trust span { display: inline-flex; align-items: center; gap: 9px; }

.auth-trust i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

/* Molinillo corporativo decorativo en la columna (recortado, como en el banner). */
.auth-molinillo {
  position: absolute;
  z-index: 0;
  right: -14px;
  bottom: -12px;
  width: 178px;
  height: 204px;
  background-image: url('/static/assets/img/airlife-molinillo-white-hd.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  opacity: .38;
  pointer-events: none;
}

/* Tarjeta de acceso. */
.auth-card {
  display: flex;
  align-items: center;
  background: var(--auth-field);
}

.auth-card-inner { width: 100%; padding: clamp(40px, 5vw, 64px); }

.auth-card-header {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(11, 43, 51, .1);
}

.auth-card-header .auth-eyebrow { color: var(--auth-cyan-active); margin-bottom: 12px; }

.auth-card-header h2 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -.02em;
}

.auth-card-header p { margin: 10px 0 0; color: var(--auth-muted); font-size: 13px; line-height: 1.55; }

.auth-form { display: grid; gap: 20px; margin-top: 30px; }

.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-input-wrap { position: relative; }

.auth-input-wrap > svg {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--auth-muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.auth-input {
  width: 100%;
  height: 54px;
  padding: 0 48px;
  border: 1px solid rgba(11, 43, 51, .16);
  border-radius: 8px;
  outline: none;
  color: var(--auth-ink);
  background: var(--auth-field);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--auth-motion), box-shadow var(--auth-motion);
}

.auth-input::placeholder { color: rgba(91, 112, 120, .66); }

.auth-input:focus {
  border-color: var(--auth-cyan);
  box-shadow: 0 0 0 4px rgba(0, 173, 216, .16);
}

.password-toggle {
  position: absolute;
  z-index: 2;
  right: 8px;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: var(--auth-muted);
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover { color: var(--auth-cyan-active); background: rgba(0, 173, 216, .08); }

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.auth-submit {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--auth-cyan);
  box-shadow: 0 14px 30px rgba(0, 173, 216, .28);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--auth-motion), transform var(--auth-motion);
}

.auth-submit:hover { background: var(--auth-cyan-active); transform: translateY(-2px); }

.auth-submit:active { transform: translateY(0); }

.auth-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.auth-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 26px;
  color: var(--auth-muted);
  font-size: 12px;
}

.security-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dbd87;
  box-shadow: 0 0 0 4px rgba(45, 189, 135, .12);
}

@keyframes auth-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  .auth-page { padding: 20px 16px 32px; }
  .auth-page::after { display: none; }

  .auth-shell { grid-template-columns: 1fr; }

  .auth-intro {
    min-height: 0;
    padding: 22px 24px;
  }

  .auth-intro-copy, .auth-trust, .auth-molinillo { display: none; }

  .auth-card { border-top: 1px solid rgba(0, 155, 194, .2); }
  .auth-card-inner { padding: 34px 24px 40px; }
}

@media (max-width: 480px) {
  .auth-page { padding: 14px 10px 26px; }
  .auth-logo { transform: scale(.9); transform-origin: left center; }
  .auth-shell { border-radius: 14px; }
  .auth-intro { padding: 18px 20px; }
  .auth-card-inner { padding: 28px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
