/* Marca del tenant analisisclinic (Centro Médico Albrook View). Solo la inyecta su vhost nginx. */

/* ---------- Shell: nombre del cliente en la barra lateral ---------- */
.neo-brand.tn-brand .neo-brand-text b { white-space: normal !important; line-height: 1.15; font-size: 15px !important; }
.neo-brand.tn-brand .neo-brand-text small { white-space: nowrap; }

/* ---------- Login a pantalla dividida (foto + formulario) ---------- */
.tn-hide { display: none !important; }

body .login-wrap.tn-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
  align-items: stretch !important;
  justify-content: stretch !important;
  min-height: 100vh; min-height: 100svh;
  padding: 0 !important;
  background: #fff !important;
}

.tn-visual { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; background: #0e5555; color: #fff; }
.tn-visual > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.tn-visual-shade { position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(180deg, rgba(4,39,45,.40), transparent 27%, rgba(3,42,47,.25) 47%, rgba(3,38,43,.90) 100%),
              linear-gradient(90deg, rgba(6,66,66,.18), transparent 80%); }
.tn-vbrand { position: absolute; top: 32px; left: clamp(25px, 5vw, 68px); display: flex; align-items: center; gap: 12px; }
.tn-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px !important; background: #fff; color: #075a58; font-weight: 800; font-size: 20px; box-shadow: 0 8px 24px rgba(5,61,61,.25); }
.tn-vbrand b { display: block; font-size: 16px; line-height: 1.15; }
.tn-vbrand small { display: block; margin-top: 3px; color: #d6eee8; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.tn-story { position: absolute; left: clamp(28px, 6vw, 82px); right: clamp(24px, 6vw, 72px); bottom: clamp(70px, 11vh, 120px); max-width: 600px; }
.tn-kicker { display: inline-flex; align-items: center; gap: 9px; color: #c6e5dc; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.tn-kicker i { width: 7px; height: 7px; border-radius: 50% !important; background: #70d5b6; box-shadow: 0 0 0 5px rgba(112,213,182,.18); }
.tn-story h1 { margin: 18px 0 12px; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -.045em; font-weight: 800; color: #fff; text-wrap: balance; }
.tn-story p { max-width: 470px; margin: 0; color: #e2efeb; font-size: 15px; line-height: 1.7; }
.tn-proof { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.tn-proof > i { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50% !important; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); font-style: normal; font-weight: 800; }
.tn-proof b { display: block; font-size: 13px; }
.tn-proof small { display: block; color: #d3e8e2; font-size: 12px; }
.tn-vfoot { position: absolute; left: clamp(28px, 6vw, 82px); right: clamp(24px, 6vw, 72px); bottom: 22px; display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.7); font-size: 11px; }

/* Panel del formulario */
body .tn-split .login-card {
  align-self: center; justify-self: center;
  width: min(100%, 420px) !important; max-width: 420px !important;
  margin: 0 auto; padding: 40px clamp(24px, 5vw, 48px) !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
body .tn-split .login-card .brand { flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
body .tn-split .login-card .brand .tn-name .brand-name { color: #18333d !important; background: none !important; font-size: 13px !important; font-weight: 800; letter-spacing: .14em; }
body .tn-split .login-card .tn-eyebrow { display: block; width: 100%; }
.tn-eyebrow { color: #168077; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.tn-title { margin: 14px 0 4px; color: #18333d; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -.035em; font-weight: 800; }
body .tn-split .login-card .subtitle { color: #71818a !important; font-size: 14px !important; margin: 4px 0 26px !important; }
body .tn-split .login-card .field > span { color: #314953 !important; font-size: 13px !important; font-weight: 700 !important; }
body .tn-split .login-card .form-control {
  height: 48px; padding: 0 14px !important; border: 1px solid #dce5e6 !important; border-radius: 9px !important;
  background: #fff !important; color: #243e47; font-size: 15px; transition: border-color .18s, box-shadow .18s;
}
body .tn-split .login-card .form-control:focus { border-color: #48a99c !important; box-shadow: 0 0 0 3px rgba(67,169,155,.18) !important; outline: 0; }
body .tn-split .login-card .btn-login {
  height: 50px; margin-top: 8px; border-radius: 9px !important; font-size: 15px !important; font-weight: 750 !important;
  background: linear-gradient(105deg, #075a58, #0b7770) !important; box-shadow: 0 8px 18px rgba(7,90,88,.22);
  transition: transform .18s, box-shadow .18s;
}
body .tn-split .login-card .btn-login:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 11px 23px rgba(7,90,88,.3); }
body .tn-split .login-card .error, body .tn-split .login-card .notice { border-radius: 8px !important; }
body .tn-split .login-card .legacy-note { color: #859399 !important; font-size: 12px !important; }
.tn-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e6eeee; color: #6f8389; font-size: 12px; }
.tn-secure i { color: #168077; font-style: normal; }

/* Tablet / móvil: la foto pasa a ser una franja superior */
@media (max-width: 900px) {
  body .login-wrap.tn-split { grid-template-columns: 1fr; align-content: start; }
  .tn-visual { min-height: 240px; height: 34vh; }
  .tn-story { bottom: 22px; }
  .tn-story h1 { font-size: clamp(24px, 6vw, 32px); margin: 10px 0 0; }
  .tn-story p, .tn-proof, .tn-vfoot { display: none; }
  .tn-vbrand { top: 20px; }
  body .tn-split .login-card { padding: 28px 20px 32px !important; }
}
@media (max-width: 420px) {
  .tn-visual { min-height: 200px; height: 30vh; }
  .tn-kicker { font-size: 10px; }
  .tn-vbrand b { font-size: 14px; }
}

/* Logo opcional del cliente (/tenant/logo.png) junto al nombre */
.login-card .brand .tn-logo { max-height: 48px; max-width: 170px; object-fit: contain; flex-shrink: 0; }
.login-card .brand .tn-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
/* En el login dividido la marca ya va sobre la foto: no repetirla en el formulario */
body .tn-split .login-card .brand { display: none !important; }

/* Isotipo del Centro Médico (cruz) */
.tn-mark { padding: 6px; }
.tn-mark img { width: 100%; height: 100%; display: block; }
.neo-brand .neo-brand-logo.tn-iso { background: #fff !important; padding: 5px; }
.neo-brand .neo-brand-logo.tn-iso img { width: 100%; height: 100%; display: block; }

/* Campos: sin el fondo amarillo de foco/autocompletado del tema global */
body .tn-split .login-card .form-control:focus,
body .tn-split .login-card .form-control:-webkit-autofill { background: #fff !important; -webkit-box-shadow: 0 0 0 40px #fff inset, 0 0 0 3px rgba(67,169,155,.18) !important; -webkit-text-fill-color: #243e47; }
body .tn-split .login-card .form-control:focus { outline: none !important; border-color: #48a99c !important; }
