/* ═══════════════════════════════════════════════════════════════
   Sbalott — Página de Acceso (Login + Registro)  auth.css v2.1
   ═══════════════════════════════════════════════════════════════ */

:root {
  --auth-orange:    #f97316;
  --auth-orange-dk: #ea580c;
  --auth-bg:        #f8fafc;
  --auth-surface:   #ffffff;
  --auth-border:    #e2e8f0;
  --auth-text:      #1e293b;
  --auth-muted:     #64748b;
  --auth-green:     #16a34a;
  --auth-red:       #dc2626;
  --auth-font:      'Nunito','Segoe UI',system-ui,sans-serif;
  --auth-radius:    12px;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.sbmp-auth-wrap {
  max-width: 520px;
  margin: 32px auto 60px;
  padding: 0 16px;
  font-family: var(--auth-font);
  color: var(--auth-text);
}
.sbmp-auth-wrap *, .sbmp-auth-wrap *::before, .sbmp-auth-wrap *::after { box-sizing: border-box; }

/* Brand */
.sbmp-auth-brand {
  text-align: center;
  margin-bottom: 24px;
}
.sbmp-auth-logo { height: 42px; width: auto; }
.sbmp-auth-logo-text { font-size: 32px; font-weight: 900; color: var(--auth-orange); letter-spacing: -1px; }
.sbmp-auth-tagline { font-size: 12px; color: var(--auth-muted); margin-top: 4px; }

/* Tabs */
.sbmp-auth-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--auth-radius);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.sbmp-auth-tab {
  flex: 1; text-align: center;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 600;
  text-decoration: none; color: var(--auth-muted);
  transition: all .15s ease;
}
.sbmp-auth-tab:hover { color: var(--auth-text); text-decoration: none; }
.sbmp-auth-tab.active {
  background: var(--auth-surface);
  color: var(--auth-orange);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Mensaje de error/éxito */
.sbmp-auth-msg {
  padding: 12px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; margin-bottom: 16px; line-height: 1.5;
}
.sbmp-auth-msg--error   { background: #fef2f2; color: var(--auth-red); border: 1px solid #fecaca; }
.sbmp-auth-msg--success { background: #f0fdf4; color: var(--auth-green); border: 1px solid #bbf7d0; }

/* Card */
.sbmp-auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.sbmp-auth-title { font-size: 20px; font-weight: 800; margin: 0 0 5px; }
.sbmp-auth-sub   { font-size: 13px; color: var(--auth-muted); margin: 0 0 22px; }

/* Vendor hero */
.sbmp-auth-vendor-hero {
  text-align: center; margin-bottom: 20px;
}
.sbmp-auth-vendor-hero span { font-size: 40px; display: block; margin-bottom: 8px; }

/* Form */
.sbmp-auth-form { display: flex; flex-direction: column; gap: 16px; }

.sbmp-auth-field { display: flex; flex-direction: column; gap: 5px; }
.sbmp-auth-field label { font-size: 12.5px; font-weight: 600; }
.sbmp-auth-field input[type=text],
.sbmp-auth-field input[type=email],
.sbmp-auth-field input[type=password],
.sbmp-auth-field input[type=number],
.sbmp-auth-field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--auth-border);
  border-radius: 9px;
  font-size: 13.5px; font-family: var(--auth-font);
  color: var(--auth-text); background: var(--auth-surface);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.sbmp-auth-field input:focus,
.sbmp-auth-field textarea:focus {
  border-color: var(--auth-orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.sbmp-auth-field small { font-size: 11px; color: var(--auth-muted); }
.req { color: var(--auth-red); }

/* Field row 2 cols */
.sbmp-auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Password input with toggle */
.sbmp-auth-pw-wrap { position: relative; }
.sbmp-auth-pw-wrap input { padding-right: 40px; }
.sbmp-pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px;
  color: var(--auth-muted); padding: 0; line-height: 1;
}
.sbmp-pw-toggle:hover { color: var(--auth-text); }

/* Strength bar */
.sbmp-strength-bar {
  height: 5px; border-radius: 3px; background: #e5e7eb;
  margin-top: 6px; overflow: hidden;
}
.sbmp-strength-fill {
  height: 100%; width: 0; border-radius: 3px;
  transition: width .3s ease, background .3s ease;
  background: #ef4444;
}
.sbmp-strength-req {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.sbmp-strength-req span {
  font-size: 11px; color: var(--auth-muted); background: #f1f5f9;
  padding: 2px 8px; border-radius: 20px; transition: all .2s;
}
.sbmp-strength-req span.ok { background: #dcfce7; color: #15803d; }
.sbmp-match-tip { font-size: 11.5px; font-weight: 600; margin-top: 3px; }

/* Remember + forgot */
.sbmp-auth-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.sbmp-auth-check {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; cursor: pointer;
}
.sbmp-auth-check input { accent-color: var(--auth-orange); width: 15px; height: 15px; }
.sbmp-auth-link { font-size: 12.5px; color: var(--auth-orange); text-decoration: none; }
.sbmp-auth-link:hover { text-decoration: underline; }

/* Vendor option */
.sbmp-auth-vendor-option {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 9px; padding: 12px;
}
.sbmp-vendor-label {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px;
}
.sbmp-vendor-label input { accent-color: var(--auth-orange); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }

/* Vendor section dentro del form */
.sbmp-auth-vendor-section {
  background: #f8fafc; border: 1px solid var(--auth-border);
  border-radius: 10px; padding: 16px;
}
.sbmp-auth-vendor-section h4 {
  font-size: 13px; font-weight: 700; margin: 0 0 14px;
  color: var(--auth-text);
}

/* Captcha */
.sbmp-captcha-field {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 9px; padding: 12px 14px;
}

/* Submit button */
.sbmp-auth-btn {
  width: 100%; padding: 12px 20px;
  background: var(--auth-orange); color: #fff;
  border: none; border-radius: 10px;
  font-size: 14.5px; font-weight: 700; font-family: var(--auth-font);
  cursor: pointer; transition: all .15s ease; margin-top: 2px;
}
.sbmp-auth-btn:hover { background: var(--auth-orange-dk); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,.3); }
.sbmp-auth-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Switch link */
.sbmp-auth-switch {
  text-align: center; font-size: 13px; color: var(--auth-muted);
  margin-top: 18px; margin-bottom: 0;
}
.sbmp-auth-switch a { color: var(--auth-orange); font-weight: 700; text-decoration: none; }
.sbmp-auth-switch a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 540px) {
  .sbmp-auth-card { padding: 20px 16px; }
  .sbmp-auth-field-row { grid-template-columns: 1fr; }
}
