/* Vínculos · Pantalla de acceso unificada con la identidad visual del centro */
#login-screen {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-items: center;
  padding: clamp(16px, 3vw, 36px);
  background:
    radial-gradient(circle at 15% 15%, rgba(180, 20, 90, 0.06), transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(23, 71, 181, 0.08), transparent 46%),
    #f3f5fb;
  color: #1b223c;
}

#login-screen .login-frame {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  width: min(100%, 1020px);
  min-height: 564px;
  overflow: hidden;
  border: 1px solid #d9dfef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(20, 29, 70, 0.09), 0 4px 14px rgba(20, 29, 70, 0.04);
}

.login-welcome-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  overflow: hidden;
  padding: 44px 44px 38px;
  background: linear-gradient(155deg, #1d2a6c 0%, #141e52 100%);
  color: #f9faff;
}

/* Barra inferior tri-color fiel a las tres piezas del logo Vínculos */
.login-welcome-panel::before {
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, #51a800 0 33.3%, #b4145a 33.3% 66.6%, #1747b5 66.6% 100%);
  content: "";
  z-index: 2;
}

.login-welcome-panel::after {
  position: absolute;
  z-index: -1;
  right: -115px;
  bottom: -145px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.035), 0 0 0 58px rgba(180, 20, 90, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

#login-screen .login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

#login-screen .login-brand-logo {
  flex: none;
  width: 96px;
  height: 66px;
  padding: 6px 8px;
  border-radius: 12px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(9, 15, 44, 0.22);
}

.login-brand-lockup span {
  max-width: 15ch;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #eef1ff;
}

.login-welcome-copy {
  align-self: center;
}

.login-welcome-title {
  max-width: 12ch;
  margin: 0 0 14px;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  font-size: clamp(2.15rem, 3.6vw, 2.95rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.login-welcome-copy p + p {
  max-width: 30ch;
  margin: 0;
  color: #d6ddf8;
  font-size: 0.98rem;
  line-height: 1.62;
}

#login-screen .login-contact,
.login-form-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

#login-screen .login-contact {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #dbe2fb;
}

.login-contact svg,
.login-form-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.login-form-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 44px 52px;
  background: #ffffff;
}

.login-form-inner {
  width: min(100%, 384px);
}

.login-form-inner h1 {
  margin: 0 0 8px;
  color: #1b223c;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.login-form-inner header p {
  margin: 0;
  color: #525d7a;
  font-size: 0.94rem;
  line-height: 1.55;
}

#login-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.login-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.login-field .form-label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1b223c;
}

.login-input-wrap {
  position: relative;
  min-width: 0;
}

.login-input-wrap .login-input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #4f5b86;
  pointer-events: none;
  transition: color 0.15s ease;
}

.login-input-wrap:focus-within .login-input-icon {
  color: #b4145a;
}

#login-form .form-input {
  display: block;
  width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 10px 14px 10px 42px;
  border: 1.5px solid #cbd3e6;
  border-radius: 10px;
  background: #fbfcff;
  color: #1b223c;
  font-family: inherit;
  font-size: 0.98rem;
  caret-color: #b4145a;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

#login-form .form-input:hover {
  border-color: #9ba8cc;
  background: #ffffff;
}

#login-form .form-input:focus {
  border-color: #b4145a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(180, 20, 90, 0.12);
}

#login-form #login-input-password {
  padding-right: 92px;
}

#login-input-password::-ms-reveal {
  display: none;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  min-width: 74px;
  min-height: 40px;
  padding: 0 10px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1747b5;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.login-password-toggle:hover {
  background: #eef2fc;
}

#login-form :is(.form-input, button):focus-visible {
  outline: 2px solid #b4145a;
  outline-offset: 2px;
}

.login-feedback:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.login-feedback:not(:empty) {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #ecc0d1;
  border-radius: 10px;
  background: #fdf2f6;
  color: #8e1048;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#login-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 49px;
  margin: 2px 0 0;
  padding: 11px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(180, 20, 90, 0.22);
  font-size: 0.95rem;
  font-weight: 700;
}

#login-submit-btn:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(142, 16, 72, 0.28);
}

#login-submit-btn svg {
  width: 18px;
  height: 18px;
}

#login-submit-btn:disabled {
  cursor: wait;
  opacity: 0.82;
}

.login-form-note {
  margin-top: 20px;
  color: #525d7a;
}

@media (max-width: 880px) {
  .login-welcome-panel {
    padding: 36px 32px 32px;
  }
  .login-form-panel {
    padding-inline: 34px;
  }
}

@media (max-width: 720px) {
  #login-screen {
    padding: 18px;
  }
  #login-screen .login-frame {
    grid-template-columns: minmax(0, 1fr);
    max-width: 500px;
    min-height: 0;
    border-radius: 18px;
  }
  .login-welcome-panel {
    gap: 18px;
    padding: 26px 26px 24px;
  }
  .login-welcome-title {
    max-width: none;
    margin-bottom: 6px;
    font-size: 1.95rem;
  }
  .login-welcome-copy p + p {
    max-width: 38ch;
    font-size: 0.91rem;
  }
  #login-screen .login-contact {
    padding-top: 12px;
  }
  .login-form-panel {
    padding: 28px 26px 32px;
  }
  .login-form-inner h1 {
    font-size: 1.72rem;
  }
}
