/* =====================================================================
   distribuidores.powerme.mx — Inicio de sesión (22 sep 2026)
   Réplica en HTML del componente "sign-in-6" (21st.dev): tarjeta partida
   con panel de marca sobre foto a la izquierda y formulario a la derecha.
   Se carga encima de styles.css + paginas.css + registro.css (campos).
   ===================================================================== */

.login-page { padding-bottom: 56px; }
.login-wrap { max-width: 920px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 14px; }
.login-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-banner); }

/* Panel izquierdo */
.login-side { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 520px; padding: 32px; color: #fff; background: var(--ink); }
.login-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.login-side::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 12, 12, .55) 0%, rgba(12, 12, 12, .1) 35%, rgba(12, 12, 12, .2) 60%, rgba(12, 12, 12, .82) 100%); }
/* Marca del panel (24 sep): logo oficial PowerMe en blanco + "Distribuidores" en la tipografía de etiquetas, como la insignia del registro */
.login-side-top { display: flex; align-items: center; gap: 14px; }
.login-logo { display: block; height: 28px; width: auto; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .35)); }
.login-brand { font-family: var(--font-display); font-size: 12px; font-weight: 300; letter-spacing: .16em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .4); line-height: 1.2; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.login-claim { margin-top: auto; max-width: 15ch; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.login-proof { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.login-avatars { display: flex; }
.login-avatars span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; border: 2px solid rgba(12, 12, 12, .6); margin-left: -8px; }
.login-avatars span:first-child { margin-left: 0; }

/* Formulario */
.login-form { display: flex; flex-direction: column; gap: 16px; padding: 36px 36px 32px; justify-content: center; }
.login-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.login-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-link { font-size: 12px; color: var(--muted); }
.field-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.login-remember { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; margin-top: -4px; }
.login-remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.login-remember input:checked + .fbox { background: var(--ink); border-color: var(--ink); }
.login-remember input:checked + .fbox::after { transform: rotate(45deg) scale(1); }
.login-remember .fbox { margin-top: 0; }
.login-submit { width: 100%; justify-content: center; margin-top: 2px; }
.login-error { font-size: 13px; font-weight: 600; color: #C43A2F; }
.login-foot { font-size: 13px; color: var(--muted); text-align: center; }
.login-foot a { font-weight: 600; color: var(--ink); }
.login-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-note { display: flex; align-items: flex-start; gap: 8px; justify-content: center; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; max-width: 60ch; margin: 0 auto; }
.login-note .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--cyan-text); }

/* Recuperar contraseña: una sola tarjeta angosta */
.recover-wrap { max-width: 440px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 14px; }
.recover-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-banner); }
.recover-card[hidden] { display: none; }
.recover-card h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.recover-card > p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.recover-card > p b { color: var(--ink); }
.recover-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); color: var(--ink); }
.recover-ico .icon { width: 20px; height: 20px; }
.recover-ico--ok { background: var(--ink); color: #fff; }
.recover-card .btn { width: 100%; justify-content: center; }
.link-btn { border: 0; padding: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .login-card { grid-template-columns: 1fr; }
  .login-side { min-height: 240px; padding: 24px; }
  .login-side-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .login-logo { height: 24px; }
  .login-brand { border-left: 0; padding-left: 0; }
  .login-claim { font-size: 22px; }
  .login-form { padding: 26px 22px 24px; }
}
