/* ==========================================================
   Encontrandonos — login.html
   Extiende los tokens de main.css. Importar después de main.css.
   ========================================================== */

.auth {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(28, 143, 209, 0.10), transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(255, 107, 74, 0.08), transparent 38%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-md);
}

.auth-card__eyebrow {
  text-align: center;
  margin: 0 0 0.5rem;
}

.auth-card__title {
  font-size: 1.9rem;
  text-align: center;
  margin: 0 0 0.65rem;
}

.auth-card__sub {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  text-align: center;
  line-height: 1.55;
  margin: 0 0 1.85rem;
}

/* ---------- Alertas ---------- */

.auth-alert {
  font-size: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1.1rem;
  line-height: 1.45;
}

.auth-alert--error {
  background: #FFEAE3;
  color: #C74A2C;
}

.auth-alert--info {
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
}

/* ---------- Botones de proveedor ---------- */

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-provider:hover {
  transform: translateY(-1px);
  border-color: var(--color-primary);
  background: var(--color-bg-soft);
}

.btn-provider:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-provider__icon {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--color-bg-soft);
}

.btn-provider__icon--google { color: #EA4335; }
.btn-provider__icon--facebook { color: #1877F2; }
.btn-provider__icon--apple {
  background: var(--color-midnight);
  position: relative;
}
.btn-provider__icon--apple::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.365 1.43c0 1.14-.475 2.222-1.24 3.032-.865.917-2.28 1.63-3.43 1.535-.146-1.083.412-2.26 1.187-3.06.833-.86 2.283-1.51 3.483-1.507zM20.66 17.25c-.556 1.27-.822 1.84-1.53 2.96-1 1.55-2.4 3.48-4.15 3.49-1.55.015-1.95-1.01-4.05-1.005-2.1.01-2.55 1.02-4.1.995-1.75-.02-3.08-1.75-4.08-3.3C.34 16.99-.42 12.16 1.14 8.92c1.05-2.16 2.94-3.53 5-3.55 1.62-.02 3.15 1.09 4.14 1.09.98 0 2.84-1.35 4.79-1.15.815.033 3.104.328 4.575 2.47-.12.075-2.73 1.59-2.7 4.75.03 3.775 3.31 5.03 3.35 5.05-.03.1-.53 1.83-1.64 3.66z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.365 1.43c0 1.14-.475 2.222-1.24 3.032-.865.917-2.28 1.63-3.43 1.535-.146-1.083.412-2.26 1.187-3.06.833-.86 2.283-1.51 3.483-1.507zM20.66 17.25c-.556 1.27-.822 1.84-1.53 2.96-1 1.55-2.4 3.48-4.15 3.49-1.55.015-1.95-1.01-4.05-1.005-2.1.01-2.55 1.02-4.1.995-1.75-.02-3.08-1.75-4.08-3.3C.34 16.99-.42 12.16 1.14 8.92c1.05-2.16 2.94-3.53 5-3.55 1.62-.02 3.15 1.09 4.14 1.09.98 0 2.84-1.35 4.79-1.15.815.033 3.104.328 4.575 2.47-.12.075-2.73 1.59-2.7 4.75.03 3.775 3.31 5.03 3.35 5.05-.03.1-.53 1.83-1.64 3.66z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Datos personales opcionales (paso 2 del registro) ---------- */

.auth-datos {
  margin: 0 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.auth-datos__titulo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0 0 1.1rem;
}

.auth-datos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  min-width: 0; /* grid item: si no, el input empuja el ancho de la columna */
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.auth-field input,
.auth-field select {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-size: 0.92rem;
  min-width: 0;
}
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--color-primary);
}

@media (max-width: 480px) {
  .auth-datos__grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Panel de términos (paso 2 del registro) ---------- */

.auth-terminos {
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.35rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.auth-terminos__titulo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-text);
  margin: 0 0 0.35rem;
}

.auth-terminos__nota {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin: 0 0 1.1rem;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  margin: 0 -0.5rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.auth-checkbox:last-of-type {
  margin-bottom: 0;
}

.auth-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.auth-checkbox a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-checkbox__required {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #C74A2C;
  margin-left: 0.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-checkbox__opcional {
  font-size: 0.78rem;
  font-style: normal;
  color: var(--color-text-soft);
  opacity: 0.8;
}

.auth-checkbox--error {
  background: #FFEAE3;
}

.auth-terminos .auth-alert {
  margin: 0.5rem 0 0;
}

.auth-terminos__acciones {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.auth-terminos__acciones .btn {
  flex: 1;
}

/* ---------- Legal ---------- */

.auth-card__legal {
  font-size: 0.76rem;
  color: var(--color-text-soft);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .auth { padding: 2.5rem 1.25rem; min-height: calc(100vh - 60px); }
}

@media (max-width: 480px) {
  .auth { padding: 2rem 1rem; }
  .auth-card { padding: 2rem 1.5rem; border-radius: var(--radius-md); }
  .auth-card__title { font-size: 1.6rem; }
  .auth-card__sub { font-size: 0.88rem; margin-bottom: 1.5rem; }
  .btn-provider { padding: 0.75rem 0.9rem; font-size: 0.9rem; }
}

@media (max-width: 360px) {
  .auth-card { padding: 1.75rem 1.1rem; }
}