@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700;800&display=swap");

.sce-login {
  --sce-green: #3b9463;
  --sce-green-soft: #4aab75;
  --sce-text: #163328;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif !important;
  font-size: 15px;
  color: var(--sce-text);
  min-height: 100vh;
  margin: 0;
  background-color: #10241c;
  background-image: url("../img/bg/01-veracruz.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  overflow: auto !important;
  position: relative !important;
}

/* Selector de fondos 1–11 (comentado; activo el 1 = 01-veracruz.jpg)
.sce-login[data-sce-bg="01-veracruz.jpg"] { background-image: url("../img/bg/01-veracruz.jpg") !important; }
.sce-login[data-sce-bg="02-sierra.jpg"] { background-image: url("../img/bg/02-sierra.jpg") !important; }
.sce-login[data-sce-bg="03-niebla.jpg"] { background-image: url("../img/bg/03-niebla.jpg") !important; }
.sce-login[data-sce-bg="04-selva.jpg"] { background-image: url("../img/bg/04-selva.jpg") !important; }
.sce-login[data-sce-bg="05-flora.jpg"] { background-image: url("../img/bg/05-flora.jpg") !important; }
.sce-login[data-sce-bg="06-bruma.jpg"] { background-image: url("../img/bg/06-bruma.jpg") !important; }
.sce-login[data-sce-bg="07-camino.jpg"] { background-image: url("../img/bg/07-camino.jpg") !important; }
.sce-login[data-sce-bg="08-sendero.jpg"] { background-image: url("../img/bg/08-sendero.jpg") !important; }
.sce-login[data-sce-bg="09-bosque.jpg"] { background-image: url("../img/bg/09-bosque.jpg") !important; }
.sce-login[data-sce-bg="10-dosel.jpg"] { background-image: url("../img/bg/10-dosel.jpg") !important; }
.sce-login[data-sce-bg="11-bruma.jpg"] { background-image: url("../img/bg/11-bruma.jpg") !important; }
*/

.sce-login:before {
  content: "";
  position: fixed !important;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, rgba(6, 22, 14, 0.82) 0%, rgba(8, 28, 18, 0.38) 48%, rgba(8, 22, 16, 0.22) 100%) !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

.sce-topbar,
.sce-topbar-split,
.sce-topbar-logos,
.sce-logo-secihti,
.sce-brand-sep {
  display: none !important;
}

.sce-login .content .sce-logo-colibri {
  display: block;
  height: 118px;
  width: auto;
  max-width: 132px;
  flex-shrink: 0;
  margin: 0;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.55))
    drop-shadow(0 1px 3px rgba(255, 255, 255, 0.28));
}

.sce-login .sce-brand {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  max-width: 38rem;
  padding: 0;
  margin: 0;
  border-bottom: 0;
}

.sce-login .sce-brand-copy {
  min-width: 0;
}

.sce-login .sce-brand-copy .sce-kicker,
.sce-login .sce-kicker {
  margin: 0 0 0.28rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.82) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35) !important;
}

.sce-login .sce-brand-copy > h1,
.sce-login .content h1,
.sce-login h1 {
  margin: 0 !important;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  color: #fff !important;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.sce-login .sce-lead {
  display: none !important;
}

.sce-login .content > p {
  color: inherit;
}

.sce-login .page,
.sce-login .container,
.sce-login .grid {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: auto !important;
}

.sce-login .page {
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.sce-login .container {
  width: min(1120px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: 40px 0 16px;
}

.sce-login .grid {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.sce-login .col-8,
.sce-login .col-4,
.sce-login .col-1 {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  height: auto !important;
  position: relative !important;
  padding: 0 !important;
}

.sce-login .col-1 {
  display: none !important;
}

.sce-login .content {
  padding: 0 !important;
  max-width: 640px;
}

.sce-login .col-8 {
  flex: 1 1 56%;
  display: flex;
  align-items: center;
}

.sce-login .col-4 {
  flex: 0 1 400px;
  width: 400px !important;
}

.sce-login .form,
.sce-login .form.half-size {
  height: auto !important;
  width: 100% !important;
  max-width: 400px;
  margin: 0 !important;
  padding: 28px 28px 22px !important;
  background: #f7faf8 !important;
  border: 1px solid rgba(59, 148, 99, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px rgba(8, 20, 14, 0.32) !important;
  position: relative;
  overflow: visible !important;
}

.sce-login .form:before {
  display: none !important;
}

.sce-login .form:after {
  display: none !important;
}

.sce-login .form h2 {
  margin: 0 0 22px !important;
  padding: 0 0 0 12px !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--sce-green) !important;
  border: 0 !important;
  border-left: 3px solid var(--sce-green) !important;
}

.sce-login .form > .control {
  margin-bottom: 14px;
}

.sce-login .form > .control:first-of-type {
  margin-top: 0;
}

.sce-login .form > .control .label {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sce-green) !important;
  margin-bottom: 6px;
}

.sce-login .form > .control .input,
.sce-login .form > .control input.input {
  display: block;
  width: 100% !important;
  height: 46px !important;
  box-sizing: border-box;
  border: 1px solid #d3e0d8 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  background: #f4f7f5 !important;
  color: var(--sce-text) !important;
  font-size: 0.97rem;
}

.sce-login .form > .control .input:focus,
.sce-login .form > .control input.input:focus {
  border-color: var(--sce-green-soft) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(59, 148, 99, 0.18) !important;
  outline: none;
}

.sce-login .scFormObjectOddPwdBox {
  position: relative !important;
  display: block !important;
  width: 100%;
}

.sce-login .scFormObjectOddPwdBox .input {
  padding-right: 42px !important;
}

.sce-login span.sc-ui-pwd-toggle-icon {
  position: absolute !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  right: 12px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  color: #5b7368;
  width: 22px;
  height: 22px;
}

.sce-login .form > .submit {
  margin: 18px 0 8px !important;
}

.sce-login .form > .submit .button {
  width: 100% !important;
  height: 46px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--sce-green) !important;
  box-shadow: none !important;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff !important;
  cursor: pointer;
}

.sce-login .form > .submit .button:hover {
  background: #327d54 !important;
}

.sce-login .form > .submit .button:active {
  background: #2d7350 !important;
}

.sce-login #id-links-1,
.sce-login #id-retrieve_pswd-1,
.sce-login .class-retrieve_pswd {
  text-align: center;
  margin-top: 10px;
}

.sce-login #id-links-1 a,
.sce-login #id-retrieve_pswd-1 a,
.sce-login .class-retrieve_pswd a,
.sce-login .scFormLinkOdd {
  color: var(--sce-green) !important;
  font-size: 0.88rem;
  text-decoration: none;
  border: 0 !important;
}

.sce-login #id-links-1 a:hover,
.sce-login #id-retrieve_pswd-1 a:hover,
.sce-login .class-retrieve_pswd a:hover {
  text-decoration: underline;
}

/*
.sce-bg-picker {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px;
  background: rgba(8, 22, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.sce-bg-picker-label {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.sce-bg-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.sce-bg-item {
  position: relative;
}

.sce-bg-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #d8e4dc center / cover no-repeat;
  cursor: pointer;
  padding: 0;
}

.sce-bg-thumb:hover {
  border-color: var(--sce-green-soft);
}

.sce-bg-thumb.is-active {
  border-color: #fff;
}

.sce-bg-num {
  position: absolute;
  left: 3px;
  top: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(8, 22, 16, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
*/

.sce-login #sc-id-required-row,
.sce-login .scFormRequiredOddColor,
.sce-login .scFormPageText {
  display: none !important;
}

.sce-login .sce-footer,
.sce-login .page:after {
  display: none !important;
  content: none !important;
}

.sce-login .alert-message {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  z-index: 50;
  width: min(440px, calc(100% - 32px));
  white-space: pre-line;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -120%) !important;
}

.sce-login .alert-message.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) !important;
}

@media (max-width: 900px) {
  .sce-login .sce-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding-bottom: 0;
    margin: 0 auto 0.4rem;
    width: 100%;
  }

  .sce-login .sce-brand-copy {
    width: 100%;
    text-align: center;
  }

  .sce-login .content .sce-logo-colibri {
    height: 96px;
    max-width: 108px;
    margin: 0 auto;
  }

  .sce-login .grid {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .sce-login .col-8 {
    justify-content: center;
  }

  .sce-login .col-4,
  .sce-login .form,
  .sce-login .form.half-size {
    width: 100% !important;
    max-width: 440px;
    margin: 0 auto !important;
  }

  .sce-login .content {
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
  }

  .sce-login .container {
    width: min(100% - 32px, 480px) !important;
    padding: 5vh 0 12px;
  }
}
