:root {
  --auth-overlay-top: rgba(6, 65, 93, 0.92);
  --auth-overlay-bottom: rgba(25, 97, 137, 0.82);
}

body.auth-page {
  margin: 0;
  display: block;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--fuente-secundaria, "Roboto", sans-serif);
  position: relative;
  background-color: var(--color-fondo, #f8f9fa);
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/static/images/Fondo CDT.1fa16b17461d.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -2;
}

body.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: none;
  z-index: -1;
  pointer-events: none;
}

body.auth-page-login-home::before {
  background-image: url("/static/images/Fondo CDT.1fa16b17461d.png");
  opacity: 0.3;
}

body.auth-page-login-home::after {
  background: none;
}

body.auth-page.auth-page-login-home {
  background-color: var(--color-fondo, #f8f9fa);
  height: 100vh;
  height: 100dvh;
  overflow-y: hidden;
}

.auth-layout {
  min-height: 100vh;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.auth-brand {
  width: min(100%, 560px);
  text-align: center;
}

.auth-brand-link {
  display: inline-flex;
  justify-content: center;
}

.auth-brand-logo {
  width: clamp(220px, 40vw, 360px);
  max-width: 100%;
}

.auth-brand-product {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.auth-card {
  width: min(100%, 560px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 44px rgba(4, 23, 33, 0.26);
  padding: clamp(1.15rem, 3vw, 2rem);
}

.auth-card--form {
  max-width: 470px;
}

.auth-title {
  margin: 0;
  font-family: var(--fuente-principal, "Bebas Neue", sans-serif);
  color: var(--color-secundario-5, #06415d);
  letter-spacing: 0.07em;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  text-align: center;
}

.auth-subtitle {
  margin: 0.25rem 0 0.95rem;
  color: #4f657a;
  text-align: center;
  font-weight: 500;
}

.auth-message {
  margin-bottom: 0.9rem;
  text-align: center;
  color: #3e5266;
  line-height: 1.5;
}

.auth-email-pill {
  border: 1px solid #d2deea;
  background: #f2f7fb;
  color: #24435f;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  overflow-wrap: anywhere;
}

.auth-form .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #365670;
}

.auth-form .form-control {
  min-height: 2.5rem;
  border: 1px solid rgba(26, 79, 147, 0.28);
  background: #ffffff;
}

.auth-form .form-control:focus {
  border-color: rgba(65, 196, 170, 0.76);
  box-shadow: 0 0 0 0.14rem rgba(65, 196, 170, 0.24);
}

.auth-alert {
  border-radius: 0.65rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  line-height: 1.3;
}

.auth-alert-error {
  color: #7f2b3a;
  border-color: #f4c2cb;
  background: #fdecef;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.9rem 0;
  color: #5f7488;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1 1 auto;
}

.auth-btn {
  min-height: 2.45rem;
  border-radius: 0.65rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  text-decoration: none;
}

.auth-btn:focus-visible {
  box-shadow: 0 0 0 0.14rem rgba(65, 196, 170, 0.25);
}

.auth-btn-primary {
  background: var(--color-primario-2, #41c4aa);
  border-color: var(--color-primario-2, #41c4aa);
  color: #ffffff;
}

.auth-btn-primary:hover {
  background: var(--color-secundario-2, #069a74);
  border-color: var(--color-secundario-2, #069a74);
  color: #ffffff;
}

.auth-btn-secondary {
  background: #ffffff;
  border-color: rgba(26, 79, 147, 0.35);
  color: var(--color-secundario-5, #06415d);
}

.auth-btn-secondary:hover {
  background: rgba(25, 97, 137, 0.09);
  color: var(--color-secundario-5, #06415d);
  border-color: rgba(26, 79, 147, 0.5);
}

.auth-btn-outline {
  background: transparent;
  border-color: rgba(26, 79, 147, 0.28);
  color: #365670;
}

.auth-btn-outline:hover {
  background: rgba(26, 79, 147, 0.08);
  color: #2f4b63;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.auth-actions .auth-btn {
  flex: 1 1 210px;
}

.auth-status-icon {
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 0.95rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.auth-status-icon .bi {
  font-size: 2rem;
}

.auth-status-icon--danger {
  color: #a02a3a;
  background: #fdecef;
  border-color: #f4c2cb;
}

.auth-status-icon--warning {
  color: #8a5b00;
  background: #fff4d6;
  border-color: #f2d184;
}

.auth-status-icon--success {
  color: #0c7a5d;
  background: #e8f7f1;
  border-color: #b6ead9;
}

.auth-spinner {
  width: 3.7rem;
  height: 3.7rem;
  border-width: 0.34rem;
  color: var(--color-primario-1, #196189);
}

.auth-loading-dots::after {
  content: "";
  animation: auth-loading-dots 1.5s infinite;
}

@keyframes auth-loading-dots {

  0%,
  20% {
    content: "";
  }

  40% {
    content: ".";
  }

  60% {
    content: "..";
  }

  80%,
  100% {
    content: "...";
  }
}

.auth-note {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  color: #5f7488;
  font-size: 0.82rem;
  text-align: center;
}

.auth-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

body.auth-page-login-home .auth-layout {
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  width: 100%;
  max-width: none;
  justify-content: center;
  padding: 0 1rem;
  gap: 0;
}

.auth-home-login {
  width: 100%;
}

.auth-home-logo-link {
  display: inline-flex;
  justify-content: center;
}

.auth-home-logo {
  width: min(100%, 560px);
  margin-bottom: 0.4rem;
}

.auth-home-title {
  margin-bottom: 0.35rem;
}

.auth-home-text {
  margin-bottom: 0.35rem;
}

.auth-home-cta-wrap {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.auth-home-cta-label {
  color: var(--color-secundario-1);
  font-weight: 500;
}

.auth-home-cta-btn {
  min-width: 18.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  line-height: 1.2;
}

.auth-home-cta-btn-strong {
  border-radius: 999px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  box-shadow: 0 10px 24px rgba(6, 65, 93, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-home-cta-btn-strong:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(6, 65, 93, 0.26);
}

.auth-home-cta-btn-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 1.02rem;
}

.auth-home-status-panel {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #d7e5ee;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.1rem;
}

.auth-home-status-panel-danger {
  border-color: #f4c2cb;
  background: rgba(253, 236, 239, 0.92);
}

.auth-home-status-panel-warning {
  border-color: #f2d184;
  background: rgba(255, 244, 214, 0.92);
}

.auth-home-status-panel-success {
  border-color: #b6ead9;
  background: rgba(232, 247, 241, 0.92);
}

.auth-home-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  font-size: 2.2rem;
}

.auth-home-status-icon-danger {
  color: #a02a3a;
}

.auth-home-status-icon-warning {
  color: #8a5b00;
}

.auth-home-status-icon-success {
  color: #0c7a5d;
}

.auth-home-message {
  color: var(--color-secundario-5, #06415d);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.auth-home-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.auth-home-action-btn {
  min-width: 13.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-home-spinner {
  width: 3.35rem;
  height: 3.35rem;
  color: var(--color-primario-1, #196189);
  border-width: 0.32rem;
}

.auth-home-note {
  color: #4f657a;
  max-width: 33rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .auth-layout {
    justify-content: flex-start;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .auth-card {
    border-radius: 0.78rem;
  }

  .auth-home-logo {
    width: min(100%, 450px);
  }

  .auth-home-cta-btn {
    width: 100%;
    min-width: 0;
  }

  .auth-home-action-btn {
    width: 100%;
    min-width: 0;
  }

  body.auth-page-login-home .auth-layout {
    justify-content: center;
    padding: 0 1rem;
  }
}
