/* TCR-1511 — Login web con estilo landing Tocheck (tocheck-red-landings) */
:root {
  --blue: #3f48fd;
  --navy: #181848;
  --yellow: #f4fd65;
  --text: #262b4c;
  --text-muted: #565d81;
  --text-soft: #7d84a5;
  --line: #e5e6f2;
  --line-2: #d7d9ec;
  --lavender: #f2f3fe;
  --grad-navy: linear-gradient(155deg, #181848 0%, #1f2058 55%, #242463 100%);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-lead: clamp(1.06rem, 1rem + 0.4vw, 1.28rem);
  --fs-body: 1rem;
  --fs-ui: 0.9375rem;
  --fs-xs: 0.875rem;
  --lh-loose: 1.72;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s16: 64px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-pill: 999px;
  --sh-xs: 0 1px 2px rgba(24, 24, 72, 0.06);
  --sh-brand: 0 16px 40px rgba(63, 72, 253, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.login-page {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

#panel_app_pruebas {
  position: relative;
  z-index: 20;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
}

.login {
  min-height: 100vh;
}

.login__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

.login__brand {
  background: var(--grad-navy);
  color: #fff;
  padding: clamp(40px, 4.4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s5);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.login__brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: #3f48fd;
  opacity: 0.6;
  filter: blur(95px);
  left: -180px;
  top: -220px;
}

.login__brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.4;
  filter: blur(72px);
  right: -60px;
  top: -90px;
}

.login__logo {
  width: 172px;
  height: auto;
  margin-bottom: var(--s6);
}

.login__claim {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 18ch;
  margin: 0;
}

.login__sub {
  font-size: var(--fs-lead);
  color: #bfc3e2;
  line-height: var(--lh-loose);
  max-width: 42ch;
  margin: 0;
}

.login__list {
  display: grid;
  gap: 12px;
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}

.login__list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-body);
  color: #cdd1e8;
  line-height: 1.55;
}

.login__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.login__panel {
  display: grid;
  place-items: center;
  align-content: center;
  padding: clamp(32px, 4vw, 64px);
  background: #fff;
}

.login__card {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login__t {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.login__d {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin: 10px 0 var(--s8);
  line-height: 1.6;
}

.login__alert {
  display: none;
  margin: 0 0 var(--s5);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: var(--fs-xs);
  line-height: 1.45;
}

.login__alert.is-visible {
  display: block;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: var(--s5);
}

.field label {
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--navy);
}

.field input {
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  width: 100%;
}

.field input:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63, 72, 253, 0.14);
}

.field.is-error input {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.field__password {
  position: relative;
}

.field__password input {
  padding-right: 48px;
}

.field__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0;
}

.field__toggle:hover,
.field__toggle:focus {
  color: var(--blue);
  outline: none;
  background: var(--lavender);
}

.field__toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.field__toggle .icon-eye-off {
  display: none;
}

.field__toggle.is-visible .icon-eye {
  display: none;
}

.field__toggle.is-visible .icon-eye-off {
  display: block;
}

.sso {
  display: flex;
  gap: var(--s4);
  justify-content: center;
  margin: var(--s6) 0 var(--s6);
  position: relative;
  padding-top: var(--s6);
}

.sso::before {
  content: "o ingrese con";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 12px;
  font-size: var(--fs-xs);
  color: var(--text-soft);
  white-space: nowrap;
}

.sso::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: -1;
}

.sso__b {
  display: grid;
  place-items: center;
  width: 88px;
  height: 52px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  padding: 0;
}

.sso__b:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(24, 24, 72, 0.08);
}

.login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin: -4px 0 var(--s6);
  flex-wrap: wrap;
}

.login__link {
  font-size: var(--fs-xs);
  color: var(--blue);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.login__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Scoped to login panel so Bootstrap modals keep their .btn styles */
.login .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.login .btn:hover {
  transform: translateY(-2px);
}

.login .btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--sh-brand);
  width: 100%;
}

.login .btn--primary .arw {
  color: var(--yellow);
}

.login .btn--primary:hover {
  background: #3540e8;
  box-shadow: 0 20px 46px rgba(63, 72, 253, 0.34);
}

.login .btn--primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.login__foot {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  line-height: 1.6;
  margin-top: var(--s6);
  text-align: center;
}

.login__foot a {
  color: var(--blue);
  font-weight: 600;
}

.login__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  margin-top: var(--s10);
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-soft);
  max-width: 420px;
  width: 100%;
}

.login__legal a {
  color: var(--blue);
  font-weight: 500;
}

.login__version {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .login__grid {
    grid-template-columns: 1fr;
  }

  .login__brand {
    order: 2;
    min-height: auto;
    padding: 36px 24px 48px;
  }

  .login__panel {
    order: 1;
    padding: 40px 24px 32px;
  }

  .login__claim {
    max-width: none;
  }
}
