/* Variables */
:root {
  --ti-primary: #1f9ad7;
  --ti-text: #333;
  --ti-bg: #fff;
  --ti-border: #ddd;
  --ti-radius: 8px;
}

/* Hidden Elements */
[hidden] {
  display: none !important;
}

/* Modal Overlay */
.ti-auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex; /* Para centrar */
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ti-auth-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog */
.ti-auth-dialog {
  background: var(--ti-bg);
  width: 90%;
  max-width: fit-content;
  padding: 30px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

/* Close Button */
.ti-auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.ti-auth-view {
  width: 404px;
  max-width: 100%;
  padding: 0;

  &[data-view="register"] {
    width: 738px;
  }
}

/* Typography & Layout */
.ti-auth-view h2 {
  color: var(--1, #a41d2b);
  text-align: center;

  /* Texto 30 */
  font-family: Xelo;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 100% */
}
.ti-auth-sub {
  color: var(--3, #84838a);
  text-align: center;

  /* Texto 14 Regular */
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px; /* 135.714% */
}

/* Forms & Fields */
.ti-auth-form {
  width: 100%;
  .inputs {
    width: 100%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    gap: 10px;
    align-self: stretch;
    flex-wrap: wrap;
    .ti-field {
      width: 48%;
      position: relative;
    }
  }
}

.ti-link{
    color: var(--3, #84838A);

/* Texto 10 Regular */
font-family: Montserrat;
font-size: 10px;
font-style: normal;
font-weight: 400;
line-height: 15px; /* 150% */
}
.ti-consents {
  border: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  align-self: stretch;
  label {
    span{
    color: var(--3, #84838a);

    /* Texto 10 Regular */
    font-family: Montserrat;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px; /* 150% */
    a {
      color: var(--3, #84838a);

      /* Texto 10 Regular */
      font-family: Montserrat;
      font-size: 10px;
      font-style: normal;
      font-weight: 400;
      line-height: 15px; /* 150% */
    }}
  }
}

.ti-field {
  display: block;
  width: 100%;
}

.ti-field input,
.ti-field select {
  width: 100%;
  display: flex;
  padding: 10px 20px;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  border-radius: 28px;
  border: 1px solid rgba(32, 31, 44, 0.1);
  background: var(--5, #f6f9fe);
  color: var(--2, #201f2c);

  /* Texto 12 Regular */
  font-family: Montserrat;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px; /* 141.667% */
  &::placeholder {
    color: var(--2, #201f2c);

    /* Texto 12 Regular */
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 17px; /* 141.667% */
  }
  &:focus {
    border: 1px solid rgba(32, 31, 44, 0.1);
    outline: none;
  }
}

/* Mensajes de Error y Éxito */
.ti-auth-message {
  display: none;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}
.ti-auth-message.error {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}
.ti-auth-message.success {
  background: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

/* Tabs Navigation */
.tabsRegister {
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
}

/* Buttons */
.ti-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.ti-btn-primary {
  background: var(--ti-primary);
  color: #fff;
}
.ti-btn-primary:hover {
  background: #157ab0;
}
.ti-btn.nextTab,
.ti-btn.prevTab {
  background: #f1f1f1;
  color: #333;
  margin-top: 10px;
}

/* Utilitarios (Clases usadas en tu HTML) */
.flex {
  display: flex;
}
.col {
  flex-direction: column;
}
.gap {
  gap: 10px;
}
.gap-1 {
  gap: 1rem;
}
.center {
  align-items: center;
  justify-content: center;
}
.start {
  align-items: flex-start;
}
.between {
  justify-content: space-between;
}
.w-100 {
  width: 100%;
}
.hidden {
  display: none;
}

/* Links footer */
.ti-auth-switch {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--3, #84838a);
  text-align: center;

  /* Texto 10 Regular */
  font-family: Montserrat;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px; /* 150% */
  button {
    color: var(--3, #84838a);
    text-align: center;

    /* Texto 10 Bold */
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 15px; /* 150% */
  }
}
.ti-auth-back {
  margin-top: 10px;
  font-size: 12px;
}
.ti-auth-back a {
  color: #999;
  text-decoration: none;
}

.ti-auth-links {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  a {
    color: var(--3, #84838a);

    /* Texto 10 Regular */
    font-family: Montserrat;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px; /* 150% */
  }
}


.ti-field-hint-desc{
  color: var(--3, #84838a);
    font-family: Montserrat;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    POSITION: ABSOLUTE;
}

@media (max-width: 800px) {
  .ti-auth-form {
    & .inputs {
        .ti-field {
            width: 100%;
        }
    }
}

.ti-auth-form {
    .inputs {
        flex-direction: column;
    }
}
}