/* =====================================
   PÁGINA DE REGISTRO
===================================== */

.register-body {
  min-height: 100vh;
  background: #f3f8f6;
}

/* Indica que el usuario está en Crear cuenta */

.header-register-active {
  position: relative;

  box-shadow:
    0 9px 22px rgba(218, 157, 10, 0.25);
}

.header-register-active::after {
  content: "";

  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -10px;

  height: 3px;

  background: #efb526;
  border-radius: 999px;
}
.mobile-account-link {
  display: none !important;
}


/* =====================================
   FONDO GENERAL
===================================== */

.register-page {
  min-height: calc(100vh - 82px);
  padding: 42px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(20, 104, 92, 0.09),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(239, 181, 38, 0.10),
      transparent 24%
    ),
    #f3f8f6;
}


/* =====================================
   TARJETA PRINCIPAL
===================================== */

.register-layout {
  width: min(1280px, 100%);
  min-height: 690px;

  display: grid;
  grid-template-columns: 0.88fr 1.12fr;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid #dce5e2;
  border-radius: 22px;

  box-shadow:
    0 25px 70px rgba(8, 61, 57, 0.14);
}


/* =====================================
   PANEL DE LA FOTOGRAFÍA
===================================== */

.register-visual {
  position: relative;
  min-height: 690px;
  padding: 62px;

  display: flex;
  align-items: center;

  color: #ffffff;

  background:
    linear-gradient(
      90deg,
      rgba(3, 45, 42, 0.95),
      rgba(5, 68, 61, 0.72)
    ),
    url("../../images/parque-municipal.jpeg")
    center / cover no-repeat;
}

.register-visual::after {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0.20;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.45) 0 1px,
      transparent 1.5px
    );

  background-size: 25px 25px;

  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent,
      black
    );

  mask-image:
    linear-gradient(
      90deg,
      transparent,
      black
    );
}

.register-visual-content {
  position: relative;
  z-index: 1;
  max-width: 450px;
}

.register-kicker {
  margin: 0 0 22px;

  display: flex;
  align-items: center;
  gap: 11px;

  color: #f4c650;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.register-kicker span {
  width: 30px;
  height: 2px;

  display: block;

  background: #efb526;
}

.register-visual h1 {
  margin: 0;

  font-size: clamp(45px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.register-welcome-text {
  max-width: 390px;
  margin: 24px 0 30px;

  color: rgba(255, 255, 255, 0.88);

  font-size: 18px;
  line-height: 1.6;
}

.register-welcome-text::after {
  content: "";

  width: 58px;
  height: 2px;
  margin-top: 22px;

  display: block;

  background: #efb526;
}


/* Beneficios */

.register-benefits {
  margin: 0;
  padding: 0;

  display: grid;
  gap: 15px;

  list-style: none;
}

.register-benefits li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.register-benefits li > span {
  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  display: grid;
  place-items: center;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);

  border: 1px solid #efb526;
  border-radius: 10px;
}

.register-benefits i {
  font-size: 19px;
}

.register-benefits strong {
  color: #ffffff;
  font-size: 15px;
}


/* =====================================
   PANEL DEL FORMULARIO
===================================== */

.register-form-panel {
  padding: 42px 50px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.register-form-card {
  width: min(100%, 670px);
}

.register-section-label {
  margin: 0 0 6px;

  color: #d99a08;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.register-heading h2 {
  margin: 0 0 7px;

  color: #102b2a;

  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.register-heading > p:last-child {
  margin: 0 0 25px;

  color: #60706f;

  font-size: 14px;
  line-height: 1.5;
}


/* =====================================
   FORMULARIO
===================================== */

.register-form {
  display: grid;
  gap: 17px;
}

.register-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.register-field {
  min-width: 0;
}

.register-field-full {
  grid-column: 1 / -1;
}

.register-field label {
  display: block;
  margin-bottom: 6px;

  color: #173331;

  font-size: 12px;
  font-weight: 800;
}


/* Caja del campo */

.register-input {
  min-height: 48px;

  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid #cbd8d5;
  border-radius: 9px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.register-input:focus-within {
  border-color: #14685c;

  box-shadow:
    0 0 0 4px rgba(20, 104, 92, 0.12);
}


/* Iconos */

.register-input-icon {
  height: 100%;

  display: grid;
  place-items: center;

  color: #0c514a;
  background: #edf5f2;

  border-right: 1px solid #dce5e2;
}

.register-input-icon i {
  font-size: 15px;
}


/* Inputs */

.register-input input {
  width: 100%;
  height: 46px;
  min-width: 0;
  padding: 0 13px;

  color: #102b2a;
  background: transparent;

  border: 0;
  outline: 0;

  font-size: 13px;
}

.register-input input::placeholder {
  color: #899794;
}


/* =====================================
   BOTONES PARA MOSTRAR CONTRASEÑA
===================================== */

.register-password-button {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  color: #0c514a;
  background: transparent;

  border: 0;

  font-size: 15px;
}

.register-password-button:hover {
  background: #f1f7f5;
}

/* Oculta los ojos automáticos de Edge */

#password::-ms-reveal,
#password::-ms-clear,
#confirmPassword::-ms-reveal,
#confirmPassword::-ms-clear {
  display: none;
}


/* =====================================
   AYUDAS
===================================== */

.register-help {
  display: block;
  margin-top: 5px;

  color: #71817f !important;

  font-size: 9.5px !important;
  font-weight: 500;
  line-height: 1.4;
}


/* =====================================
   MENSAJES DE ERROR
===================================== */

.register-error {
  display: none !important;
  margin-top: 5px;

  color: #d92d20 !important;

  font-size: 10px !important;
  font-weight: 600;
  line-height: 1.4;
}

.register-error.is-visible {
  display: block !important;
}

.register-input.has-error {
  border-color: #d92d20 !important;

  box-shadow:
    0 0 0 3px rgba(217, 45, 32, 0.10) !important;
}

.register-input.has-error .register-input-icon {
  color: #d92d20;
  background: #fff1f0;
}


/* =====================================
   TÉRMINOS
===================================== */

.terms-wrapper {
  margin-top: 1px;
}

.terms-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;

  color: #425956;

  font-size: 11px;
  line-height: 1.5;

  cursor: pointer;
}

.terms-option input {
  width: 17px;
  height: 17px;
  margin-top: 1px;

  flex: 0 0 auto;

  accent-color: #0c514a;
}

.terms-option a {
  color: #0c514a;
  font-weight: 800;
}

.terms-option a:hover {
  text-decoration: underline;
}

.terms-error {
  margin-left: 26px;
}


/* =====================================
   BOTÓN PRINCIPAL
===================================== */

.register-submit {
  width: 100%;
}


/* =====================================
   MENSAJE DE ÉXITO
===================================== */

.register-success {
  padding: 12px 14px;

  display: flex;
  align-items: center;
  gap: 10px;

  color: #17634f;
  background: #e8f5ef;

  border: 1px solid #cbe8dc;
  border-radius: 9px;

  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.register-success i {
  color: #21866f;
  font-size: 17px;
}


/* =====================================
   ENLACE DE INICIAR SESIÓN
===================================== */

.login-message {
  margin: 18px 0;

  color: #60706f;

  text-align: center;
  font-size: 12px;
}

.login-message a {
  color: #0c514a;
  font-weight: 800;
}

.login-message a:hover {
  text-decoration: underline;
}


/* =====================================
   MENSAJE DE SEGURIDAD
===================================== */

.register-security {
  padding: 12px 15px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  color: #27524d;
  background: #eaf5f1;

  border: 1px solid #d8ebe4;
  border-radius: 10px;
}

.register-security > span {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: grid;
  place-items: center;

  color: #14685c;
  background: #ffffff;

  border-radius: 50%;
}

.register-security strong,
.register-security small {
  display: block;
}

.register-security strong {
  margin-bottom: 2px;
  font-size: 11px;
}

.register-security small {
  color: #607875;

  font-size: 9px;
  line-height: 1.4;
}


/* =====================================
   PIE DE PÁGINA
===================================== */

.register-footer {
  margin-top: 0;
}


/* =====================================
   PANTALLAS MEDIANAS
===================================== */

@media (max-width: 1080px) {
  .register-layout {
    grid-template-columns: 0.78fr 1.22fr;
  }

  .register-visual {
    padding: 45px;
  }

  .register-form-panel {
    padding: 38px 35px;
  }

  .register-visual h1 {
    font-size: 45px;
  }
}


/* =====================================
   TABLETAS
===================================== */

@media (max-width: 860px) {
  .mobile-account-link {
    display: flex !important;
  }

  .register-page {
    min-height: auto;
    padding: 28px 16px;
  }

  .register-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .register-visual {
    min-height: 300px;
    padding: 42px;
  }

  .register-visual h1 {
    font-size: 46px;
  }

  .register-welcome-text {
    margin-bottom: 21px;
  }

  .register-benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .register-benefits li {
    gap: 8px;
  }

  .register-benefits li > span {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .register-benefits strong {
    font-size: 10px;
  }

  .register-form-panel {
    padding: 45px 38px;
  }
}


/* =====================================
   TELÉFONOS
===================================== */

@media (max-width: 600px) {
  .register-page {
    padding: 16px;
  }

  .register-layout {
    border-radius: 16px;
  }

  .register-visual {
    min-height: 235px;
    padding: 30px 25px;

    background-position: center;
  }

  .register-kicker {
    margin-bottom: 13px;
    font-size: 9px;
  }

  .register-visual h1 {
    font-size: 36px;
  }

  .register-welcome-text {
    max-width: 300px;
    margin: 14px 0 0;

    font-size: 14px;
  }

  .register-welcome-text::after {
    margin-top: 15px;
  }

  .register-benefits {
    display: none;
  }

  .register-form-panel {
    padding: 34px 20px;
  }

  .register-heading h2 {
    font-size: 34px;
  }

  .register-heading > p:last-child {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .register-fields-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .register-field-full {
    grid-column: auto;
  }

  .register-input {
    min-height: 52px;
  }

  .register-input input {
    height: 50px;
    font-size: 14px;
  }

  .register-password-button {
    height: 50px;
  }

  .register-error {
    font-size: 10.5px !important;
  }

  .register-security {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

.register-server-error {
  padding: 12px 15px;

  color: #b42318;
  background: #fff1f0;

  border: 1px solid #f5c2c0;
  border-radius: 9px;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.register-server-error[hidden] {
  display: none;
}

.register-submit:disabled {
  cursor: wait;
  opacity: 0.75;
}