:root {
--bg-color: #151521;
--primary-color: #ff6f5e;
--secondary-color: #a9dbc9;
--card-bg: rgba(29, 29, 44, 0.7);
--input-bg: #222232;
--blur: 16px;
}

html {
    height: 100%;
    overflow-y: auto; /* Permite scroll SOLO si es necesario */
  }
  
  body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg-color);
    font-family: 'Poppins', sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
  }
  
  .container {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

.terms-text {
    color: #777;
    font-size: 0.75rem;
    text-align: center;
  }
  
  .terms-text a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
  }

.code-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin: 0px;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
  }

.digit-box {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 1.5em;
    background-color: var(--card-bg);
    color: var(--secondary-color);
    border-radius: 8px;
    border-radius: 10px;
    border: 1px solid #2e2e40;
    color: white;
}

.tooltip-icon {
  position: relative;
  display: inline-block;
  cursor: help;
  }
  
  .tooltip-text {
  visibility: hidden;
  min-width: 200px;
  max-width: 520px;
  background-color: rgb(164, 154, 154);
  color: #1e1d1d;
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 9999;
  bottom: 125%;
  font-size: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: normal;
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.3);
  font-weight:normal;
  }

  input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
    -webkit-text-fill-color: #fff !important;
    border: 1px solid #2e2e40;
    outline: none;
  }


  .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgb(164, 154, 154) transparent transparent transparent;
  }
  
  .tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  }

.logo {
text-align: center;
font-size: 2rem;
font-weight: 700;
color: var(--secondary-color);
letter-spacing: 1px;
position: relative;
}

.form-section {
display: none;
flex-direction: column;
gap: 1rem;
transition: all 0.5s ease;
}

.form-section.active {
display: flex;
animation: fadeInForm 0.7s ease;
}

input[type="email"],
input[type="password"],
input[type="text"] {
padding: 0.8rem;
border-radius: 10px;
border: 1px solid #2e2e40;
background: var(--input-bg);
color: white;
font-size: 1rem;
transition: border 0.3s, background 0.3s;
outline: none;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Opcional para Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

input::placeholder {
color: #77778a;
}

input:hover {
border-color: var(--secondary-color);
background-color: #29293d;
}

button {
position: relative;
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
padding: 0.8rem;
border-radius: 10px;
font-family: 'Poppins', sans-serif;
border: none;
background: var(--primary-color);
color: white;
font-size: 1rem;
cursor: pointer;
transition: background 0.3s, transform 0.2s;
overflow: hidden;
}

.icon-success {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
  }


button.loading span {
display: none; /* ocultar texto al cargar */
}

.no-padding {
padding: 0!important;
}

button i {
font-size: 1.5rem;
display: none;
align-self: center;
justify-content: center;
align-items: center;
width: 1.5rem;   /* <<< */
height: 1.5rem;  /* <<< */
line-height: 1.5rem; /* <<< */
color: white;
transition: opacity 0.3s ease;
}

button:hover {
  filter: brightness(90%);
  transform: scale(1.02);
}
.links {
margin-top: 1rem;
text-align: center;
font-size: 0.9rem;
color: var(--secondary-color);
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  width: 100%;
  padding-right: 40px;
  color: white;
  border-radius: 8px;
}

.password-container i {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: #ccc;
  font-size: 1.2rem;
}

.mensaje-alerta {
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid var(--primary-color);
    background-color: #1e1e2f;
    color: var(--primary-color);
  }
  
  .mensaje-exito {
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #a9dbc9;
    background-color: #1e1e2f;
    color: #a9dbc9;
  }


.links a {
color: var(--secondary-color);
text-decoration: none;
margin: 0 0.5rem;
cursor: pointer;
transition: color 0.3s;
}

.links a:hover {
color: var(--primary-color);
}

.message {
text-align: center;
font-size: 0.95rem;
margin-top: 0.5rem;
min-height: 1.2rem;
}

.success {
color: var(--secondary-color);
}

.error {
color: var(--primary-color);
}

@keyframes fadeIn {
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes fadeInForm {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}


@media (max-width: 480px) {
.container {
margin: 1rem;
padding: 2rem;
}
}