/* Joseteasiste — maqueta de login magic-link (MOCKUP estático, sin auth real).
   Reusa variables y componentes de styles.css. Solo estilos propios del login. */

.login-main {
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: var(--bg-alt);
}

.login-wrap { width: 100%; max-width: 440px; }

/* Aviso permanente: esto es una maqueta, no autentica de verdad. */
.mock-note {
  background: #fff6e5;
  border: 1px solid #f0d9a8;
  color: #6a4b12;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .85rem;
  margin-bottom: 18px;
  text-align: center;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.login-card .brand { justify-content: center; margin-bottom: 18px; display: flex; }
.login-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: .35em; }
.login-card .login-sub { color: var(--muted); text-align: center; font-size: .95rem; margin-bottom: 24px; }

/* Paneles de estado: solo uno visible (data-active). */
.login-panel { display: none; }
.login-panel.is-active { display: block; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
}
.field input[type="email"]:focus,
.field input[type="password"]:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field-hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.form-error {
  background: #fdecea;
  border: 1px solid #f3b4ac;
  color: #7a1f14;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .85rem;
  margin-bottom: 16px;
}
.form-error.is-hidden { display: none; }

.btn-brand { background: var(--brand); color: #fff; width: 100%; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-block { width: 100%; }

.login-help { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 16px; }
.login-help a { font-weight: 600; }

/* Estado "revisá tu correo" */
.sent-icon, .session-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 1.6rem;
  background: var(--brand-soft); color: var(--brand-dark);
}
.sent-mail { font-weight: 700; color: var(--text); }

/* Estado "sesión iniciada" (placeholder de panel) */
.session-icon { background: #e6f6ec; color: #1fae55; }
.session-teaser {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 0;
  font-size: .9rem;
  color: var(--muted);
}
.session-teaser strong { color: var(--text); }

.login-foot { text-align: center; margin-top: 22px; font-size: .85rem; }

/* Demo switcher: navegación entre estados solo para la maqueta. */
.demo-switch {
  margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--border);
  text-align: center; font-size: .8rem; color: var(--muted);
}
.demo-switch span { display: block; margin-bottom: 8px; font-weight: 600; }
.demo-switch button {
  background: transparent; border: 1px solid var(--border); color: var(--brand-dark);
  border-radius: 999px; padding: 6px 12px; margin: 0 3px 6px; cursor: pointer; font-size: .8rem;
}
.demo-switch button:hover { border-color: var(--brand); }
