:root {
  --zfp-navy-950: #071a24;
  --zfp-navy-900: #0a2430;
  --zfp-navy-800: #103746;
  --zfp-teal-700: #087b78;
  --zfp-teal-600: #07948c;
  --zfp-green-600: #58a431;
  --zfp-green-500: #70b946;
  --zfp-lime-400: #a5d64f;
  --zfp-surface: rgba(255, 255, 255, 0.96);
  --zfp-text: #18323b;
  --zfp-muted: #687c84;
  --zfp-line: #dce6e7;
  --zfp-danger: #e24b55;
  --zfp-shadow-lg: 0 32px 80px rgba(2, 20, 29, 0.32);
  --zfp-shadow-md: 0 18px 42px rgba(2, 20, 29, 0.2);
  --zfp-radius-xl: 30px;
  --zfp-radius-lg: 20px;
  --zfp-radius-md: 14px;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--zfp-navy-950);
}

body.login-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--zfp-text);
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: var(--zfp-navy-950);
  background-image: url("../images/login-zfp-pacifico.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  isolation: isolate;
}

body.login-page::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 24, 33, 0.91) 0%, rgba(5, 31, 40, 0.75) 44%, rgba(5, 30, 38, 0.58) 100%),
    linear-gradient(180deg, rgba(5, 25, 34, 0.08) 0%, rgba(3, 17, 24, 0.6) 100%);
}

body.login-page::after {
  position: fixed;
  z-index: -1;
  top: -20rem;
  right: -16rem;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(112, 185, 70, 0.21), transparent 67%);
  filter: blur(12px);
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding: clamp(1.1rem, 2.5vw, 2.5rem) clamp(1rem, 4vw, 4.5rem) 1rem;
}

.login-main {
  display: grid;
  flex: 1 0 auto;
  place-items: center;
  width: 100%;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.78fr);
  gap: clamp(2.5rem, 7vw, 7.5rem);
  align-items: center;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.left-panel {
  max-width: 650px;
  padding: clamp(0rem, 0vw, 2rem) 0;
  color: #fff;
}

.logo-shell {
  display: inline-flex;
  align-items: center;
  
  min-height: 96px;
  padding: 1rem 1.3rem;
  
}

.logo-main {
  display: block;
  width: 100%;
  max-width: 270px;
  height: auto;
  object-fit: contain;
  animation: brandReveal 0.75s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.brand-copy {
  max-width: 640px;
  margin-top: clamp(1.65rem, 3vw, 2.5rem);
  animation: contentReveal 0.75s 0.08s ease both;
}

.brand-kicker,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-kicker {
  color: #d8f8a9;
}

.brand-kicker::before,
.card-kicker::before {
  width: 1.8rem;
  height: 2px;
  border-radius: 20px;
  content: "";
  background: currentColor;
}

.brand-title {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 5.8vw, 5.35rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 12px 35px rgba(2, 20, 29, 0.35);
}

.brand-description {
  max-width: 560px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  font-weight: 400;
  line-height: 1.75;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 620px;
  margin-top: clamp(1.5rem, 1.0vw, 2.4rem);
}

.impact-item {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--zfp-radius-md);
  background: rgba(7, 40, 49, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.impact-value {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.impact-label {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.auth-panel {
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.login-card-horizontal.card {
  width: 100%;
  max-width: none;
  min-height: 520px;
  margin: 0;
  padding: clamp(1.5rem, 3.4vw, 2.7rem) !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--zfp-radius-xl) !important;
  background: var(--zfp-surface);
  box-shadow: var(--zfp-shadow-lg);
  backdrop-filter: blur(22px) saturate(125%);
  animation: cardReveal 0.7s 0.12s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.login-card-horizontal.card::before {
  position: absolute;
  top: 0;
  left: 2rem;
  width: 5.25rem;
  height: 4px;
  border-radius: 0 0 12px 12px;
  content: "";
  background: linear-gradient(90deg, var(--zfp-green-500), var(--zfp-teal-600));
}

.login-card-header {
  margin-bottom: 1.6rem;
}

.card-kicker {
  color: var(--zfp-teal-700);
}

.login-card-title {
  margin: 0;
  color: var(--zfp-navy-900);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.login-card-subtitle {
  margin: 0.6rem 0 0;
  color: var(--zfp-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

.form-floating,
.field-group {
  position: relative;
}

.login-card-horizontal .form-control,
.login-card-horizontal select.form-control,
.modal-content .form-control {
  min-height: 58px;
  border: 1px solid var(--zfp-line);
  border-radius: var(--zfp-radius-md);
  color: var(--zfp-text);
  background-color: #f8fbfb;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-card-horizontal .form-control:hover,
.login-card-horizontal select.form-control:hover,
.modal-content .form-control:hover {
  border-color: #bdd0d2;
  background-color: #fff;
}

.login-card-horizontal .form-control:focus,
.login-card-horizontal select.form-control:focus,
.modal-content .form-control:focus {
  border-color: var(--zfp-teal-600);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(7, 148, 140, 0.12);
}

.login-card-horizontal .form-floating > .form-control {
  height: 60px;
  padding: 1.4rem 3.25rem 0.45rem 1rem;
}

.login-card-horizontal .form-floating > label {
  padding: 1.05rem 1rem;
  color: #75868c;
}

.login-card-horizontal select.form-control {
  height: 60px;
  padding: 0 3.25rem 0 1rem;
  appearance: none;
  cursor: pointer;
}

.login-card-horizontal select.form-control:invalid,
.login-card-horizontal select.form-control option[value="0"] {
  color: #75868c;
}

.field-icon,
.toggle-password-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 1rem;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  margin: 0 !important;
  padding: 0;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #829399;
  background: transparent !important;
}

.toggle-password-btn {
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.toggle-password-btn:hover {
  color: var(--zfp-teal-700);
  background-color: rgba(7, 148, 140, 0.09) !important;
}

.login-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
}

.login-card-horizontal .btn-link {
  color: var(--zfp-teal-700);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.login-card-horizontal .btn-link:hover {
  color: var(--zfp-navy-900);
  text-decoration: none;
}

.login-card-horizontal .btn-primary,
.modal-content .btn-primary {
  min-height: 48px;
  padding: 0.72rem 1.35rem;
  border: 0;
  border-radius: 13px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--zfp-teal-600), var(--zfp-green-600));
  box-shadow: 0 12px 22px rgba(7, 123, 120, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-card-horizontal .btn-primary:hover,
.modal-content .btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 28px rgba(7, 123, 120, 0.28);
}

.login-card-horizontal .btn-primary:active,
.modal-content .btn-primary:active {
  transform: translateY(0);
}

.login-btn {
  min-width: 150px;
}

.security-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid #e7eeee;
  color: #7a8d93;
  font-size: 0.9rem;
  line-height: 1.5;
}

.security-note i {
  margin-top: 0.13rem;
  color: var(--zfp-green-600);
}

.problems-header {
  margin-bottom: 1.35rem;
}

.problems-title {
  margin: 0;
  color: var(--zfp-navy-900);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.problems-copy {
  margin: 0.45rem 0 0;
  color: var(--zfp-muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.support-options {
  gap: 0.7rem !important;
}

.support-options .btn-outline-primary {
  display: flex;
  min-height: 56px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--zfp-line);
  border-radius: var(--zfp-radius-md);
  color: var(--zfp-text);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  background: #f8fbfb;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.support-options .btn-outline-primary i {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--zfp-teal-700);
  background: rgba(7, 148, 140, 0.09);
}

.support-options .btn-outline-primary:hover {
  transform: translateX(3px);
  border-color: rgba(7, 148, 140, 0.45);
  color: var(--zfp-navy-900);
  background: rgba(7, 148, 140, 0.055);
}

#contenedorFormularios {
  padding: 1rem;
  border: 1px solid #e2ebec;
  border-radius: var(--zfp-radius-md);
  background: #fbfdfd;
}

#contenedorFormularios .form-label {
  margin-bottom: 0.45rem;
  color: #496169;
  font-size: 1rem;
  font-weight: 600;
}

#contenedorFormularios .form-control {
  min-height: 52px;
  padding-inline: 0.9rem;
}

#footerFormulario {
  gap: 0.8rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e7eeee;
}

#btnVolverOpciones {
  margin-right: auto;
}

.login-copy {
  width: min(1180px, 100%);
  margin: clamp(0rem, 0vw, 1.8rem) auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.68) !important;
  background: rgba(4, 25, 34, 0.52);
  box-shadow: 0 16px 36px rgba(2, 20, 29, 0.16);
  backdrop-filter: blur(14px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
}

.footer-item {
  display: flex;
  min-width: 0;
  gap: 0.7rem;
  align-items: center;
}

.footer-item i {
  flex: 0 0 auto;
  color: #c6ef8a;
  font-size: 1rem;
}

.footer-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.footer-item a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.footer-item a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copyright {
  justify-self: end;
  text-align: right;
}
#floating-bell {
  position: fixed;
  z-index: 1040;
  right: clamp(1rem, 2vw, 1.6rem);
  top: clamp(1rem, 2vw, 1.6rem);
}

#floating-bell a {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
 
  border-radius: 18px;
  
  font-size: 1.8rem;
  text-decoration: none;
  background: #ffffff !important;
    color: #154289 !important;
    border: 3px solid #154289;
    box-shadow:
        0 12px 28px rgba(21, 66, 137, 0.35),
        0 0 0 4px rgba(255, 255, 255, 0.75);

  animation: bellGlow 3.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#floating-bell a i {
  display: block;
  transform-origin: 50% 8%;
  animation: bellRing 3.4s ease-in-out infinite;
  will-change: transform;
}

#floating-bell a:hover {
  transform: translateY(-3px);
  background: #154289 !important;
  color: #ffffff !important;
  border-color: #ffffff;
  box-shadow: 0 19px 34px rgba(3, 36, 43, 0.4);
}

#floating-bell a:hover i {
  animation-duration: 1.45s;
   color: inherit !important;
}

@keyframes bellRing {
  0%,
  48%,
  82%,
  100% {
    transform: rotate(0deg);
  }

  54% {
    transform: rotate(16deg);
  }

  59% {
    transform: rotate(-14deg);
  }

  64% {
    transform: rotate(11deg);
  }

  69% {
    transform: rotate(-8deg);
  }

  74% {
    transform: rotate(5deg);
  }

  78% {
    transform: rotate(-2deg);
  }
}

@keyframes bellGlow {
  0%,
  45%,
  100% {
    box-shadow: 0 15px 30px rgba(3, 36, 43, 0.32);
  }

  56% {
    box-shadow:
      0 15px 30px rgba(3, 36, 43, 0.38),
      0 0 0 0 rgba(112, 185, 70, 0.44);
  }

  76% {
    box-shadow:
      0 17px 34px rgba(3, 36, 43, 0.4),
      0 0 0 15px rgba(112, 185, 70, 0);
  }
}


.notification-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f04e58;
  box-shadow: 0 0 0 4px rgba(240, 78, 88, 0.18);
}

#snow-container {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.modal-backdrop.show {
  opacity: 0.7;
}

.modal-dialog {
  max-width: 520px;
}

.modal-content {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  box-shadow: var(--zfp-shadow-lg);
}

.modal-header {
  align-items: center;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid #e4ecec;
  background: #f8fbfb;
}

.modal-title {
  color: var(--zfp-navy-900);
  font-weight: 700;
}

.modal-header .close {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  color: #587078;
  background: #e9f0f0;
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
}

.modal-lead {
  max-width: 390px;
  margin: 0 auto;
  color: var(--zfp-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-container {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.35rem 0;
}

.code-input {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 1px solid var(--zfp-line);
  border-radius: 12px;
  color: var(--zfp-navy-900);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  background: #f8fbfb;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-input:focus {
  border-color: var(--zfp-teal-600);
  box-shadow: 0 0 0 4px rgba(7, 148, 140, 0.12);
}

.hidden-inputs {
  display: none;
}

.reset-password-section {
  padding-top: 0.2rem;
  text-align: left;
}

.reset-password-section hr {
  margin: 1.35rem 0;
  border-color: #e4ecec;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 3.25rem;
}

#password-requirements {
  border: 0 !important;
  border-radius: 13px !important;
  color: #536a72;
  background: #f2f7f6 !important;
  font-size: 0.78rem !important;
}

#password-requirements li + li {
  margin-top: 0.22rem;
}

.text-success {
  color: #418727 !important;
}

.text-danger {
  color: var(--zfp-danger) !important;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(165, 214, 79, 0.58) !important;
  outline-offset: 3px;
}

@keyframes brandReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  body.login-page {
    background-position: 44% center;
    background-attachment: scroll;
  }

  body.login-page::before {
    background: linear-gradient(180deg, rgba(4, 25, 34, 0.86) 0%, rgba(5, 30, 38, 0.7) 53%, rgba(3, 20, 28, 0.88) 100%);
  }

  .login-container {
    padding: 1.4rem clamp(1rem, 4vw, 2.2rem) 1rem;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 680px;
  }

  .left-panel {
    max-width: none;
    padding: 0;
    text-align: center;
  }

  .logo-shell {
    min-height: 78px;
    margin-inline: auto;
    padding: 0.75rem 1rem;
  }

  .logo-main {
    max-width: 260px;
    margin-inline: auto;
  }

  .brand-copy {
    margin: 1.25rem auto 0;
  }

  .brand-kicker {
    justify-content: center;
  }

  .brand-title {
    max-width: none;
    font-size: clamp(2.35rem, 10vw, 4rem);
  }

  .brand-description {
    margin-inline: auto;
  }

  .impact-grid {
    max-width: 600px;
    margin-inline: auto;
  }

  .auth-panel {
    max-width: 560px;
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-copyright {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  #floating-bell {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .login-container {
    padding: 0.9rem 0.75rem 0.75rem;
  }

  .logo-shell {
    width: min(285px, 82vw);
  }

  .brand-copy {
    margin-top: 1rem;
  }

  .brand-kicker {
    margin-bottom: 0.55rem;
    font-size: 0.66rem;
  }

  .brand-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .brand-description {
    display: none;
  }

  .impact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .impact-item {
    min-height: 72px;
    padding: 0.7rem 0.45rem;
  }

  .impact-value {
    font-size: 1.05rem;
  }

  .impact-label {
    font-size: 0.6rem;
  }

  .login-card-horizontal.card {
    min-height: 0;
    padding: 1.45rem 1.1rem !important;
    border-radius: 23px !important;
  }

  .login-card-header {
    margin-bottom: 1.25rem;
  }

  .login-card-title {
    font-size: 1.55rem;
  }

  .login-actions {
    flex-direction: column-reverse;
    gap: 0.9rem;
    align-items: stretch;
  }

  .login-actions .btn-link {
    text-align: center;
  }

  .login-btn {
    width: 100%;
  }

  #footerFormulario {
    flex-wrap: wrap;
  }

  #btnEnviarProblemaLogin {
    width: 100%;
    order: -1;
  }

  .login-copy {
    padding: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .footer-item,
  .footer-copyright {
    grid-column: auto;
    justify-self: center;
    text-align: center;
  }

  .footer-item {
    align-items: flex-start;
  }

  .footer-item i {
    margin-top: 0.12rem;
  }

  #floating-bell a {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .modal-dialog {
    margin: 0.75rem;
  }

  .modal-body {
    padding: 1.2rem 1rem;
  }

  .code-container {
    gap: 0.35rem;
  }

  .code-input {
    height: 50px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   TOASTS REUTILIZABLES
   ========================================================= */

#iu-toast-container {
  position: fixed;
  z-index: 20000;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  width: min(390px, calc(100vw - 2rem));
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.iu-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0.9rem 0.85rem 0.9rem 1rem;
  transform: translateX(24px) scale(0.98);
  border: 1px solid #d8e3e5;
  border-left: 5px solid #075985;
  border-radius: 15px;
  color: var(--zfp-text);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(2, 20, 29, 0.24);
  opacity: 0;
  pointer-events: auto;
  backdrop-filter: blur(14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.iu-toast.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.iu-toast.salida {
  transform: translateX(18px) scale(0.98);
  opacity: 0;
}

.iu-toast.success {
  border-left-color: #2f7d32;
}

.iu-toast.error {
  border-left-color: #b4232f;
}

.iu-toast.warning {
  border-left-color: #9a6700;
}

.iu-toast.info {
  border-left-color: #075985;
}

.iu-toast-icon {
  font-size: 1.15rem;
}

.iu-toast.success .iu-toast-icon {
  color: #2f7d32;
}

.iu-toast.error .iu-toast-icon {
  color: #b4232f;
}

.iu-toast.warning .iu-toast-icon {
  color: #9a6700;
}

.iu-toast.info .iu-toast-icon {
  color: #075985;
}

.iu-toast-message {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.iu-toast-close {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #60747c;
  font-size: 1.25rem;
  line-height: 1;
  background: #edf3f4;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.iu-toast-close:hover {
  color: var(--zfp-navy-900);
  background: #dfe9eb;
}

#login-form .form-control.is-invalid {
  border-color: #b4232f !important;
  background-image: none;
  box-shadow: 0 0 0 4px rgba(180, 35, 47, 0.12) !important;
}

@media (max-width: 575.98px) {
  #iu-toast-container {
    top: 0.75rem;
    right: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .iu-toast {
    min-height: 58px;
    padding: 0.8rem;
  }
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(165, 214, 79, 0.58) !important;
  outline-offset: 3px;
}

@keyframes brandReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  body.login-page {
    background-position: 44% center;
    background-attachment: scroll;
  }

  body.login-page::before {
    background: linear-gradient(180deg, rgba(4, 25, 34, 0.86) 0%, rgba(5, 30, 38, 0.7) 53%, rgba(3, 20, 28, 0.88) 100%);
  }

  .login-container {
    padding: 1.4rem clamp(1rem, 4vw, 2.2rem) 1rem;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 680px;
  }

  .left-panel {
    max-width: none;
    padding: 0;
    text-align: center;
  }

  .logo-shell {
    min-height: 78px;
    margin-inline: auto;
    padding: 0.75rem 1rem;
  }

  .logo-main {
    max-width: 260px;
    margin-inline: auto;
  }

  .brand-copy {
    margin: 1.25rem auto 0;
  }

  .brand-kicker {
    justify-content: center;
  }

  .brand-title {
    max-width: none;
    font-size: clamp(2.35rem, 10vw, 4rem);
  }

  .brand-description {
    margin-inline: auto;
  }

  .impact-grid {
    max-width: 600px;
    margin-inline: auto;
  }

  .auth-panel {
    max-width: 560px;
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-copyright {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  #floating-bell {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .login-container {
    padding: 0.9rem 0.75rem 0.75rem;
  }

  .logo-shell {
    width: min(285px, 82vw);
  }

  .brand-copy {
    margin-top: 1rem;
  }

  .brand-kicker {
    margin-bottom: 0.55rem;
    font-size: 0.66rem;
  }

  .brand-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .brand-description {
    display: none;
  }

  .impact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .impact-item {
    min-height: 72px;
    padding: 0.7rem 0.45rem;
  }

  .impact-value {
    font-size: 1.05rem;
  }

  .impact-label {
    font-size: 0.6rem;
  }

  .login-card-horizontal.card {
    min-height: 0;
    padding: 1.45rem 1.1rem !important;
    border-radius: 23px !important;
  }

  .login-card-header {
    margin-bottom: 1.25rem;
  }

  .login-card-title {
    font-size: 1.55rem;
  }

  .login-actions {
    flex-direction: column-reverse;
    gap: 0.9rem;
    align-items: stretch;
  }

  .login-actions .btn-link {
    text-align: center;
  }

  .login-btn {
    width: 100%;
  }

  #footerFormulario {
    flex-wrap: wrap;
  }

  #btnEnviarProblemaLogin {
    width: 100%;
    order: -1;
  }

  .login-copy {
    padding: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .footer-item,
  .footer-copyright {
    grid-column: auto;
    justify-self: center;
    text-align: center;
  }

  .footer-item {
    align-items: flex-start;
  }

  .footer-item i {
    margin-top: 0.12rem;
  }

  #floating-bell a {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .modal-dialog {
    margin: 0.75rem;
  }

  .modal-body {
    padding: 1.2rem 1rem;
  }

  .code-container {
    gap: 0.35rem;
  }

  .code-input {
    height: 50px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}