* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  /*background: linear-gradient(to bottom right, #b94ef7, #ff6f61);*/
  background: linear-gradient(to bottom, #b94ef7cf, #f48b67);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

header {
    width: 100%;
    background: transparent;
    /* background: linear-gradient(to bottom, #b94ef7cf, #c176c9); */
    /* background: linear-gradient(to bottom, #b94ef7cf, #c578cde6); */
    /* background: linear-gradient(to bottom, #b94ef7cf, #c578cde6), #ffffff; */
    /* background: linear-gradient(to bottom, #b864e7, #c675cf); */
    /*background: linear-gradient(to bottom, #b864e7, #ca62fb);*/
    text-align: left;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    will-change: box-shadow;
    transition: filter 0.25s ease;
    transform: translateZ(0);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Flecha atrás y enlace superior */
.topbar svg {
  text-decoration: none;
  color: #fff;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.container {
  padding: 35px 20px;
  /*height: 100vh;*/
  height: calc(100vh - 88px);
  background: transparent;
  width: 350px;
  text-align: center;
  color: #fff;
  position: relative;
}

h1 {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  font-size: 14px;
  font-style: italic;
  /*opacity: 0.8;*/
  margin-bottom: 35px;
}

.title-in{
  font-size: 13px;
  font-weight: 600;
  color: black;
  margin-bottom: 5px;
}

.google-btn {
  position: relative; /* importante para posicionar el ícono dentro */
  display: flex;
  align-items: center;
  justify-content: center; /* centra el texto */
  background: #fff;
  color: #000;
  font-weight: 700;
  width: 100%;
  border: none;
  padding: 10px 0;
  border-radius: 25px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
  overflow: hidden;
  font-size: 14px;
  text-decoration: none;
}

.google-btn img {
  position: absolute;
  left: 10px; /* pegado 10px al borde izquierdo */
  width: 20px;
  height: 20px;
}

.google-btn:hover {
  transform: scale(1.03);
}

/* Divider */
.divider {
  margin: 35px 0;
  position: relative;
  color: rgba(255,255,255,0.8);
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: rgba(255,255,255,0.4);
  font-weight: 600;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* Inputs */
.input-group {
  margin-bottom: 15px;
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Password eye */
.password-group {
  display: flex;
  align-items: center;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
}

.toggle-password svg{
  height: 22px;
  width: 22px;
  color: #000000bd;
  vertical-align: middle;
}

.form-btn {
  width: 100%;
  background: #fff;
  /*color: #ff6f61;*/
  border: none;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 25px;
  padding: 12px 0;
  cursor: pointer;
  /*box-shadow: 0 4px 10px rgba(0,0,0,0.25);*/
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.3s ease;
  margin-top: 35px;
  /*para el color del texto*/
   /*background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #b94ef7, #ff4f81);
  -webkit-text-fill-color: transparent;*/
}

.form-btn span{
  background: linear-gradient(to right, #b94ef7, #ff4f81);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.form-btn:hover {
  transform: scale(1.05);
  background: #ffe3e0;
}

.terms-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}

/* SWITCH */
.terms-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; /* evita que se desborde en pantallas pequeñas */
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
  width: 100%;
  line-height: 1.3;
}

/* SWITCH */
.switch {
  position: relative;
  display: inline-block;
  min-width: 38px; /* tamaño fijo para evitar salto */
  height: 20px;
  flex-shrink: 0; /* evita que el switch se reduzca */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.slider:before {
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 2.5px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Mantiene el mismo tamaño al activarse */
.switch input:checked + .slider {
  border-color: #fff;
  background: transparent;
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

/* TEXTO */
.terms-text {
  color: rgba(255, 255, 255, 0.8);
  flex: 1; /* ocupa el espacio restante sin romper el layout */
  font-size: 11.5px;
  text-align: left;
  font-style: italic;
}

.terms-text .highlight {
  font-weight: 600;
  color: #fff;
}

/* RESPONSIVIDAD EXTRA */
@media (max-width: 400px) {
  .terms-container {
    font-size: 12px;
    gap: 6px;
  }
  .switch {
    min-width: 34px;
    height: 18px;
  }
  .slider:before {
    height: 10px;
    width: 10px;
    bottom: 3px;
  }
}
.mb-40{
  margin-bottom: 40px;
}

.modal-error {
  position: fixed;
  top: 230px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4d4d;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 15px;
  z-index: 9999;
  min-width: 280px;
  max-width: 90%;
  text-align: center;
  animation: fadeInOut 4s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  10% { opacity: 1; transform: translateX(-50%) translateY(0); }
  90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}