/* ==========================================================================
   base-login.css
   Hoja de estilos exclusiva para las páginas de login y password reset.
   Contiene solo las clases necesarias extraídas de main.css, update-astro.css
   y login.css.
   ========================================================================== */

/* ==========================================================================
   1. Reset y base
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

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

body {
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
}

a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

img {
  border-style: none;
}

figure {
  margin: 0;
  padding: 0;
}

button {
  border: 0;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
}

/* ==========================================================================
   2. Icon font (icomoon)
   ========================================================================== */

@font-face {
  font-family: "icomoon";
  src: url("../fonts/icomoon.eot?a2dbzx");
  src: url("../fonts/icomoon.eot?a2dbzx#iefix") format("embedded-opentype"),
    url("../fonts/icomoon.ttf?a2dbzx") format("truetype"),
    url("../fonts/icomoon.woff?a2dbzx") format("woff"),
    url("../fonts/icomoon.svg?a2dbzx#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"],
[class*=" icon-"] {
  font-family: "icomoon" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-facebook:before {
  content: "\e91b";
}

.icon-instagram:before {
  content: "\e91e";
}

.icon-linkedin:before {
  content: "\e920";
}

.icon-info:before {
  content: "\e91d";
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.main {
  padding-top: 68px;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}

.main-screen {
}

.d-none {
  display: none !important;
}

.container {
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

@media screen and (min-width: 640px) {
  .container {
    max-width: 576px;
  }
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 704px;
  }
}

@media screen and (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media screen and (min-width: 1280px) {
  .container {
    max-width: 1216px;
  }
}

@media screen and (min-width: 1440px) {
  .container {
    max-width: 1376px;
  }
}

@media screen and (min-width: 1536px) {
  .container {
    max-width: 1472px;
  }
}

@media screen and (min-width: 768px) {
  .container-md {
    margin: 0 auto;
    width: 100%;
    max-width: 704px;
  }
}

/* ==========================================================================
   4. Utilidades
   ========================================================================== */

.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.flex-col {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.justify-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.items-center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.relative,
.p-relative {
  position: relative !important;
}

.text-white {
  color: #fff;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.p-1 {
  padding: 0.125rem;
}

.px-4rem {
  padding-left: 4rem;
  padding-right: 4rem;
}

.mt-12 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 1rem;
}

.mt-2rem {
  margin-top: 2rem;
}

.mb-2rem {
  margin-bottom: 2rem;
}

.mr-1 {
  margin-right: 0.125rem;
}

.mr-5 {
  margin-right: 0.625rem;
}

.ml-1 {
  margin-left: 0.125rem;
}

.ml-5 {
  margin-left: 0.625rem;
}

@media screen and (min-width: 1024px) {
  .mt-lg-4rem {
    margin-top: 4rem;
  }
  .mt-lg-6rem {
    margin-top: 6rem;
  }
}

/* ==========================================================================
   5. Botones
   ========================================================================== */

.btn.btn-lg {
  height: 44px;
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 2.5;
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #d0d5dd;
  background-color: #f2f4f7;
  border-color: #f2f4f7;
  pointer-events: none;
}

/* ==========================================================================
   6. Hero Login
   ========================================================================== */

.hero-login {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: linear-gradient(to bottom, #ffffff 0%, #fef3fb 50%, #ffffff 100%);
  overflow: hidden;
  margin-top: -4.28rem;
  min-height: 100vh;
}

.hero-login__content {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: calc(100vh - 80px);
}

/* ==========================================================================
   7. Login form
   ========================================================================== */

.login {
  position: relative;
  min-height: 100vh;
  text-align: center;
}

.login-brand {
  max-width: 233px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-brand .logo {
  width: 100%;
}

.logo {
  width: 100%;
  height: auto;
}

.login-form {
  width: 100%;
  height: auto;
  border-radius: 22px;
  margin-bottom: 3rem;
  padding: 5rem 3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  /* Glassmorphism from login.css */
  border-radius: 15px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-2xl, 20px);
  background-color: #E4E7EC;
  position: relative;

  /* Shadow-4 */
  box-shadow: 0 16px 32px -4px rgba(12, 12, 13, 0.10), 0 4px 4px -4px rgba(12, 12, 13, 0.05);
}

.login-form::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: url("/static/public/images/gradient-hero.png") center/80% no-repeat;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 640px) {
  .login-form {
    width: 100%;
  }
}


.login-form .alert-danger {
  width: 85%;
  margin: 0 auto;
  background-color: #f63d68;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  color: #fff;
}

[class*="login-form__input"] {
  border-radius: 10px;
}

.login-form__input {
  width: 85%;
  padding: 10px 14px;
  border: none;
  margin-bottom: 30px;
  border: 1px solid #d0d5dd;
}

.login-form__input-error {
  border: 1px solid #fd6f8e;
  margin-bottom: 0;
}

.login-form__span-error {
  visibility: visible;
  font-size: 1rem;
  color: #fd6f8e;
  padding-left: 2.8rem;
  text-align: left;
  font-weight: normal;
  margin-top: -1rem;
  margin-bottom: 0;
  /* Overrides from inline <style> */
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .login-form__span-error {
    padding-left: 2rem;
    padding-right: 2.4rem;
  }
}

.login-form__icon-info {
  float: right;
  margin-right: 2.6rem;
}

@media (max-width: 640px) {
  .login-form__icon-info {
    margin-right: -0.3rem;
  }
}

.login-text {
  margin: 0;
  margin-top: 10px;
  margin-bottom: 40px;
  font-size: 2rem;
  background: linear-gradient(44.85deg, #7a5af8 0%, #f63d68 94.38%);
  -webkit-text-fill-color: rgba(0, 0, 0, 0);
  -webkit-background-clip: text;
  background-clip: text;
}

.login-form__link {
  font-size: 0.875rem;
  color: #0D1320;
  margin-top: 5px;
}

.login-form__link:hover {
  font-weight: 600;
}

@media (min-width: 1024px) {
  .login-form__link {
    margin-top: 0;
  }
}

.login-form-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .login-form-links {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}

.login-form__link-divider {
  display: none;
}

@media (min-width: 1024px) {
  .login-form__link-divider {
    color: #0D1320;
    margin-left: 10px;
    display: block;
    margin-top: 0;
    margin-right: 10px;
    font-weight: 400;
  }
}

.login-form__span {
  color: #394352;
  font-size: 0.75rem;
}

.login-form__link-verify {
  color: #394352;
  font-weight: bold;
}

/* ==========================================================================
   7b. Password reset form
   ========================================================================== */

.forgot-password-text {
  margin: 0;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 2rem;
  background: linear-gradient(44.85deg, #7a5af8 0%, #f63d68 94.38%);
  -webkit-text-fill-color: rgba(0, 0, 0, 0);
  -webkit-background-clip: text;
  background-clip: text;
}

.forgot-password-text__info {
  font-size: 0.75rem;
  text-align: left;
  line-height: 16.8px;
  padding-left: 2.6rem;
  padding-right: 2.6rem;
  margin-top: 40px;
  font-weight: normal;
  color: #475467;
}

@media (max-width: 640px) {
  .forgot-password-text__info {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.forgot-password-text__info-span {
  color: #475467;
}

.login-form__label {
  font-size: 0.875rem;
  text-align: left;
  padding-left: 2.8rem;
  color: #0D1320;
}

@media (max-width: 640px) {
  .login-form__label {
    padding-left: 2rem;
  }
}

.login-form__input-forgot {
  width: 85%;
  padding: 10px 14px;
  border: none;
  border: 1px solid #d0d5dd;
  margin-bottom: 10px;
}

.login-form__input-forgot-error {
  border: 1px solid #fd6f8e;
}

.login-form__span-error-reset {
  visibility: visible;
  font-size: 1rem;
  color: #fd6f8e;
  padding-left: 2.8rem;
  text-align: left;
  font-weight: normal;
}

@media (max-width: 640px) {
  .login-form__span-error-reset {
    padding-left: 2rem;
    padding-right: 2.4rem;
  }
}

.login-form__button {
  padding: 8px 50px;
  cursor: pointer;
  border: none;
  margin-top: 25px;
  margin-bottom: 40px;
}

.btn-px-2rem {
  padding-left: 4.8rem !important;
  padding-right: 4.8rem !important;
}

/* ==========================================================================
   8. Alertas
   ========================================================================== */

.alert-danger {
  width: 100%;
  margin: 0 auto;
  background-color: #f63d68;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  color: #fff;
}

.alert.alert-danger ul {
  padding-top: 0.5rem;
}

.alert.alert-danger li {
  padding-left: 2rem;
  margin-bottom: 0.5rem;
}

.alert.alert-danger .icon-info {
  position: absolute;
  left: 1rem;
}

.alert.alert-danger {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #df2626;
  color: white;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  padding-top: 2rem;
  padding: 2rem 20px 0 20px;
}

.footer .group-submenu-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .footer .group-submenu-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 2rem;
  }
}

.footer .group-submenu-footer .submenu-footer {
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .footer .group-submenu-footer .submenu-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 0;
  }
}

.footer .group-submenu-footer .submenu-footer-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 0;
  width: 100%;
}

.footer .group-submenu-footer .submenu-footer-item {
  color: #98a2b3;
  font-size: 13px;
  list-style: none;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .footer .group-submenu-footer .submenu-footer-item {
    margin-bottom: 0;
  }
}

@media (min-width: 580px) {
  .footer .group-submenu-footer .submenu-footer-item:not(:last-child)::after {
    content: "|";
    display: inline-block;
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

.footer .group-submenu-footer .submenu-footer-item a {
  color: #98a2b3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
}

.footer .group-submenu-footer .submenu-footer-item a:hover {
  color: #fff;
}

.footer .menu-social-footer {
  padding: 1rem 0 3rem 0;
}

@media (min-width: 1024px) {
  .footer .menu-social-footer {
    padding: 0;
  }
}

.footer .menu-social-footer-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  list-style: none;
  gap: 1rem;
}

/* ==========================================================================
   10. Aurora effects (login.css)
   ========================================================================== */

.aurora-1 {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  opacity: 0.7;
  pointer-events: none;
}

.aurora-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
  opacity: 0.7;
  pointer-events: none;
  filter: blur(75px);
}

/* ==========================================================================
   11. Override de update-astro.css (btn-primary gradient)
   ========================================================================== */

.btn-primary {
  display: flex;
  width: 216px;
  padding: var(--space-4, 16px) var(--space-7, 28px);
  justify-content: center;
  align-items: center;
  gap: var(--space-25, 10px);
  border-radius: var(--radius-full, 99999px);
  background: var(--sem-fill-primary, #7D29E0);
  color: white;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 200px;
  font-size: 1rem;
}

/* ==========================================================================
   12. Override de update-astro.css (font-family Inter)
   ========================================================================== */

* {
  font-family: "Inter", sans-serif !important;
}

/* ==========================================================================
   13. Spinner del botón submit
   ========================================================================== */

#btnSubmit svg {
  margin: 0 25px;
}

/* ==========================================================================
   14. Check account / Verify account
   ========================================================================== */

.verify-account-big-text {
  margin: 0;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 2rem;
  background: linear-gradient(44.85deg, #7a5af8 0%, #f63d68 94.38%);
  -webkit-text-fill-color: rgba(0, 0, 0, 0);
  -webkit-background-clip: text;
  background-clip: text;
}

.verify-account-text {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 40px;
}

.verify-account-text__info {
  font-size: 0.75rem;
  text-align: left;
  line-height: 16.8px;
  font-weight: normal;
  color: #98a2b3;
}

.form-check_account {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.form-check_account__label {
  font-size: 0.875rem;
  text-align: left;
  margin-bottom: 1rem;
}

.form-check_account__input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  margin-bottom: 30px;
  border: 1px solid #d0d5dd;
}

.checkbox-custom {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  margin: 0;
  width: 15px;
  height: 15px;
  border: 1px solid #d0d5dd;
  color: #e31b54;
}

.checkbox-custom:checked {
  border: 1px solid #e31b54;
}

.checkbox-custom:checked::before {
  content: "";
  font-size: 0.8rem;
  position: absolute;
  top: 0;
  font-family: "icomoon" !important;
}

/* ==========================================================================
   15. Utilidades adicionales (check account)
   ========================================================================== */

.flex-row {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.justify-start {
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.col-12 {
  width: 100%;
}

.my-3 {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.mb-8 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 0.5rem;
}

.mr-1rem {
  margin-right: 1rem;
}

.text-secondary {
  color: #7a5af8;
}

.title-md,
.h4 {
  font-size: 1.75rem;
  line-height: 2.45rem;
}

.float-right {
  float: right;
}

.help-block.form-text {
  color: #fd6f8e;
  font-size: 0.875rem;
}

/* ==========================================================================
   16. Utilidades adicionales (password_reset_done)
   ========================================================================== */

.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 0.625rem;
}

.mt-8rem {
  margin-top: 8rem;
}

.mb-3 {
  margin-bottom: 0.375rem;
}

.title-lg,
.h3 {
  font-size: 2rem;
  line-height: 2.8rem;
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
}

.text-left {
  text-align: left;
}

@media screen and (min-width: 1024px) {
  .mt-lg-1rem {
    margin-top: 1rem;
  }
}

/* ==========================================================================
   17. Password change form
   ========================================================================== */

.forgot-password-list {
  text-align: left;
  padding-left: 4.4rem;
  font-size: 0.75rem;
  line-height: 16.8px;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .forgot-password-list {
    padding-left: 3.4rem;
  }
}

.forgot-password-list__point {
  list-style: circle;
}

.password-change-checkbox {
  margin-right: 4.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.1;
  padding-left: 40px;
  color: #1d2939;
}

.password-change-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 3px;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
}

.password-change-checkbox input[type="checkbox"]:checked {
  border: 1px solid #7D29E0;
  background-color: #7D29E0;
}

.password-change-checkbox input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.password-change-checkbox-span {
  margin-left: 5px;
}

.password-change-checkbox-span__underline {
  text-decoration: underline;
}
