/* 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(--3, #1F1539);
text-align: center;

/* Titulo 25 Bold */
font-family: "Polly Rounded";
font-size: 25px;
font-style: normal;
font-weight: 700;
line-height: 30px; /* 120% */
letter-spacing: -1.25px;
}
.ti-auth-sub {
  color: var(--Temp, #565C6C);
text-align: center;

/* Texto 16 Regular */
font-family: Montserrat;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 21px; /* 131.25% */
}

/* 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;
    }
  }
}
.boton-base{
  display: flex;
padding: 10px 15px;
justify-content: center;
align-items: center;
gap: 10px;
display: flex;
padding: 10px 15px;
justify-content: center;
align-items: center;
gap: 10px;
color: #FFF;

/* Titulo 16 Bold */
font-family: "Polly Rounded";
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 21px; /* 131.25% */
letter-spacing: -0.8px;
transition: all 0.3s ease;
border-radius: 50px;
background: var(--1, #DA3D58);
&:hover{
  background: #E31D3F;
}
}

.ti-link{
color: var(--Temp, #565C6C);

/* Texto 12 Regular */
font-family: Montserrat;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 17px; /* 141.667% */
}
.ti-consents {
  border: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  align-self: stretch;
  label {
    span{
    color: var(--Temp, #565C6C);

/* Texto 12 Regular */
font-family: Montserrat;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 17px; /* 141.667% */
    a {
      color: var(--Temp, #565C6C);

/* Texto 12 Regular */
font-family: Montserrat;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 17px; /* 141.667% */
    }}
  }
}

.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(131, 197, 205, 0.50);
background: rgba(131, 197, 205, 0.20);
color: var(--3, #1F1539);

/* Titulo 14 Regular */
font-family: "Polly Rounded";
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 19px; /* 135.714% */
letter-spacing: -0.7px;
&::placeholder{
  color: var(--3, #1F1539);

/* Titulo 14 Regular */
font-family: "Polly Rounded";
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 19px; /* 135.714% */
letter-spacing: -0.7px;
}
&:focus {
  border: 1px solid rgba(131, 197, 205, 0.50);
  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: 15px;
}
.gap-1 {
  gap: 15px;
}
.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;

 color: var(--3, #1F1539);

/* Texto 12 Regular */
font-family: Montserrat;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 17px; /* 141.667% */
  button {
   color: var(--3, #1F1539);
text-align: center;

/* Texto 12 Bold */
font-family: Montserrat;
font-size: 12px;
font-style: normal;
font-weight: 700;
line-height: 17px; /* 141.667% */
  }
}
.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;
    }
}
}