/* ========================================
   Auth / Login — pantalla partida (home público)
   ======================================== */

:root {
  --auth-shadow: 0 10px 25px rgba(11, 42, 90, 0.18);
  --auth-radius: 14px;
}

.auth-layout-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-login-container {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(var(--ce-teal-rgb), 0.14) 0%, transparent 55%),
    linear-gradient(155deg, var(--ce-navy) 0%, #2c3a7e 52%, var(--ce-primary-hover-from) 100%);
}

.auth-panel-left {
  position: relative;
  display: flex;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-panel-left__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 36rem;
  min-height: 100%;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.auth-panel-left__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-panel-left__brand {
  display: inline-block;
  margin-bottom: 2rem;
  line-height: 0;
  opacity: 0.95;
  transition: opacity 0.15s ease;
}

.auth-panel-left__brand:hover {
  opacity: 1;
}

.auth-panel-left__logo {
  display: block;
  height: clamp(6.5rem, 13vw, 9rem);
  width: auto;
  max-width: min(28rem, 94%);
  object-fit: contain;
}

.auth-panel-left__institutional {
  margin-top: auto;
  padding-top: 2.5rem;
}

.auth-panel-left__org {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.auth-panel-left__logo-ministerio {
  display: block;
  width: auto;
  height: clamp(3.25rem, 5.5vw, 4.25rem);
  max-width: min(24rem, 92%);
  margin: 0 auto;
  object-fit: contain;
  opacity: 0.95;
}

.auth-panel-left__title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
}

.auth-panel-left__title-accent {
  color: var(--ce-teal);
  text-decoration: underline wavy;
  text-decoration-color: rgba(var(--ce-teal-rgb), 0.85);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

.auth-panel-left__lead {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.5;
}

.auth-panel-left__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
  width: 100%;
  max-width: 26rem;
  margin: 1.75rem 0 2rem;
  text-align: left;
}

.auth-panel-left__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 500;
  line-height: 1.35;
}

.auth-panel-left__features i {
  flex-shrink: 0;
  color: var(--ce-teal);
  font-size: 1.2rem;
}

.auth-panel-left__back {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-panel-left__back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.auth-panel-right {
  padding: 2.5rem;
}

.auth-form-wrapper {
  max-width: 30rem;
  margin: 0 auto;
}

.auth-form-wrapper__logos-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-form-wrapper__logo-ministerio-mobile {
  height: 2.75rem;
  width: auto;
  max-width: 17rem;
  object-fit: contain;
  opacity: 0.95;
}

.auth-form-wrapper__logo-mobile {
  height: 5.25rem;
  width: auto;
  max-width: 20rem;
  object-fit: contain;
}

.auth-form-wrapper__title {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 700;
}

.auth-form-wrapper__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.auth-form-label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-form-control,
.auth-form-control:focus {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--auth-radius);
  color: #1e293b;
  padding: 0.85rem 1.1rem;
  font-size: 1.05rem;
  min-height: 3.25rem;
}

.auth-form-control:focus {
  border-color: rgba(var(--ce-teal-rgb), 0.65);
  box-shadow: var(--ce-focus-ring);
}

.auth-form-wrapper .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
}

.auth-form-submit {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ce-teal) 0%, #3d9ab0 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 1.25rem;
  min-height: 3.25rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.auth-form-submit:hover,
.auth-form-submit:focus-visible {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-form-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.98rem;
}

.auth-security-note {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 1rem 1.15rem !important;
}

.auth-form-back-mobile {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-form-back-mobile:hover {
  color: #fff;
}

@media (max-width: 767.98px) {
  .auth-panel-right {
    padding: 1.75rem 1.5rem;
    min-height: 100vh;
  }

  .auth-panel-left__features {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

/* —— Cambio de contraseña obligatorio —— */
.auth-pwd-steps-preview {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 22rem;
  margin: 2rem auto 0;
  text-align: left;
}

.auth-pwd-steps-preview li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.auth-pwd-steps-preview__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--ce-teal-rgb), 0.22);
  border: 1px solid rgba(var(--ce-teal-rgb), 0.55);
  color: var(--ce-teal);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-pwd-intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-pwd-intro__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(var(--ce-teal-rgb), 0.18);
  border: 1px solid rgba(var(--ce-teal-rgb), 0.4);
  color: var(--ce-teal);
  font-size: 1.45rem;
}

.auth-pwd-fields {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.auth-pwd-block {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-pwd-block__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.auth-pwd-block__num {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ce-teal) 0%, #3d9ab0 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.auth-pwd-block__title {
  margin: 0 0 0.2rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.auth-pwd-block__hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-pwd-input {
  position: relative;
}

.auth-pwd-input .auth-form-control {
  padding-right: 3.1rem;
}

.auth-pwd-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-pwd-toggle:hover,
.auth-pwd-toggle:focus-visible {
  color: var(--ce-navy);
  background: rgba(53, 69, 147, 0.08);
  outline: none;
}

.auth-pwd-actions {
  margin-top: 0.35rem;
}

.auth-pwd-form .auth-form-wrapper__title {
  margin-bottom: 0.4rem;
}

@media (max-width: 767.98px) {
  .auth-pwd-block {
    padding: 1rem 1rem 1.1rem;
  }
}
