/* ============================================================
   Mac3D — auth.css
   Ubicación: /home/macdcom/mac3d.xyz/backend/assets/css/auth.css
   Estilos compartidos para login.php + registro.php
   ============================================================ */

.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
  background: #fafafa;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 2.5rem 2.4rem 2.2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}

/* ── Logo ────────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
  text-decoration: none;
}
.auth-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* ── Título ──────────────────────────────────────────────── */
.auth-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #1d1d1f;
  text-align: center;
  margin: 0 0 .4rem;
  line-height: 1.15;
}
.auth-sub {
  font-size: .92rem;
  color: #6e6e73;
  text-align: center;
  margin: 0 0 1.8rem;
  line-height: 1.4;
}

/* ── Error ───────────────────────────────────────────────── */
.auth-error {
  background: rgba(193,53,53,.08);
  border: 1px solid rgba(193,53,53,.25);
  color: #c13535;
  padding: .7rem 1rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}
.auth-error a { color: #c13535; font-weight: 700; text-decoration: underline; }

/* ── OAuth ───────────────────────────────────────────────── */
.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.2rem;
}
.auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: #1d1d1f;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.12);
  padding: .82rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
  letter-spacing: -.01em;
  -webkit-tap-highlight-color: rgba(217,79,30,.15);
  touch-action: manipulation;
  position: relative;
  z-index: 2;
  user-select: none;
}
.auth-oauth-btn:active {
  transform: scale(.98);
  background: #f5f5f7;
}
.auth-oauth-btn:hover {
  background: #f5f5f7;
  border-color: rgba(0,0,0,.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.auth-oauth-btn svg { flex-shrink: 0; }

.auth-oauth-apple {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
}
.auth-oauth-apple:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ── Divisor ─────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.4rem 0 1.2rem;
  color: #86868b;
  font-size: .82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,.1);
}

/* ── Form ────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.auth-field label {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: #1d1d1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -.005em;
}

.auth-label-link {
  font-weight: 500;
  color: #D94F1E;
  text-decoration: none;
  font-size: .8rem;
  transition: color .2s ease;
}
.auth-label-link:hover { color: #b83e13; text-decoration: underline; }

.auth-field input {
  font-family: inherit;
  font-size: .95rem;
  padding: .82rem 1rem;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 10px;
  color: #1d1d1f;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
  -webkit-appearance: none;
}
.auth-field input::placeholder { color: #86868b; }
.auth-field input:focus {
  border-color: #D94F1E;
  box-shadow: 0 0 0 3px rgba(217,79,30,.12);
}

.auth-input-pw {
  position: relative;
}
.auth-input-pw input {
  width: 100%;
  padding-right: 2.8rem;
}
.auth-pw-toggle {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #86868b;
  cursor: pointer;
  padding: .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.auth-pw-toggle:hover {
  color: #1d1d1f;
  background: #f5f5f7;
}

/* ── Medidor de fortaleza ────────────────────────────────── */
.auth-pw-strength {
  height: 4px;
  background: #f5f5f7;
  border-radius: 4px;
  overflow: hidden;
  margin-top: -.5rem;
}
.auth-pw-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: all .3s ease;
}
.auth-pw-strength-label {
  font-size: .76rem;
  color: #6e6e73;
  margin: -.5rem 0 0;
  font-weight: 500;
  min-height: 1em;
}

/* ── Términos ────────────────────────────────────────────── */
.auth-terms {
  font-size: .8rem;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0;
}
.auth-terms a {
  color: #D94F1E;
  text-decoration: none;
  font-weight: 500;
}
.auth-terms a:hover { text-decoration: underline; }

/* ── Botón principal ────────────────────────────────────── */
.auth-btn {
  font-family: inherit;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
  background: #D94F1E;
  color: #fff;
  border: none;
  padding: .95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  margin-top: .3rem;
  box-shadow: 0 4px 14px rgba(217,79,30,.3);
}
.auth-btn:hover {
  background: #b83e13;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(217,79,30,.4);
}
.auth-btn:active {
  transform: translateY(0) scale(.98);
}

/* ── Switch (¿No tienes cuenta?) ─────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: .9rem;
  color: #6e6e73;
  margin: 1.6rem 0 0;
}
.auth-switch a {
  color: #D94F1E;
  text-decoration: none;
  font-weight: 600;
  margin-left: .25rem;
}
.auth-switch a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-wrap {
    padding: 4rem 1rem 2rem;
    min-height: calc(100vh - 80px);
  }
  .auth-card {
    padding: 2rem 1.6rem 1.8rem;
    border-radius: 16px;
  }
  .auth-title { font-size: 1.4rem; }
  .auth-sub { font-size: .85rem; margin-bottom: 1.4rem; }
  /* Tap targets grandes en móvil */
  .auth-oauth-btn,
  .auth-form button,
  .auth-form input {
    min-height: 48px;
    font-size: 16px; /* evita zoom en iOS al focar input */
  }
}

/* ─── Bloque migración WordPress ─────────────────────────── */
.auth-wp-migrado {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.1rem;
  background: rgba(0, 80, 200, .06);
  border: 1px solid rgba(0, 80, 200, .2);
  border-radius: 12px;
  margin-bottom: 1.2rem;
  font-size: .88rem;
  color: #1d1d1f;
  line-height: 1.5;
}
.auth-wp-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.auth-wp-content { flex: 1; }
.auth-wp-content strong { display: block; font-size: .95rem; font-weight: 700; color: #003087; margin-bottom: .3rem; }
.auth-wp-content p { margin: 0 0 .75rem; color: #424245; }
.auth-wp-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: .75rem; }
.auth-wp-btn-google {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1rem; background: #fff;
  border: 1.5px solid rgba(0,0,0,.15); border-radius: 9px;
  font-size: .85rem; font-weight: 600; color: #1d1d1f;
  text-decoration: none; transition: background .2s ease, border-color .2s ease;
}
.auth-wp-btn-google:hover { background: #f5f5f7; border-color: rgba(0,0,0,.25); }
.auth-wp-btn-reset {
  display: inline-flex; align-items: center;
  padding: .6rem 1rem; background: #1d1d1f;
  border-radius: 9px; font-size: .85rem; font-weight: 600;
  color: #fff; text-decoration: none; transition: background .2s ease;
}
.auth-wp-btn-reset:hover { background: #000; }
.auth-wp-note {
  font-size: .78rem; color: #6e6e73; margin: 0;
  padding-top: .6rem; border-top: 1px solid rgba(0,0,0,.08);
}
