@import url('https://api.fontshare.com/v2/css?f[]=neue-machina@800,700,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800;900&display=swap');

/* ════════════════════════════════════════════════════════════════════════
   BIZ AUTH — business login + register
   Violet/indigo palette, matches business dashboard
   Does NOT affect admin_login (uses auth.css) or other pages
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --ba-bg:      #07060e;
  --ba-violet:  #a78bfa;
  --ba-indigo:  #7c3aed;
  --ba-vd:      rgba(167,139,250,0.12);
  --ba-text:    #ede8ff;
  --ba-text2:   rgba(237,232,255,0.55);
  --ba-text3:   rgba(237,232,255,0.3);
  --ba-border:  rgba(255,255,255,0.09);
  --ba-surface: rgba(255,255,255,0.04);
  --ba-green:   #34d399;
  --ba-amber:   #fbbf24;
  --ba-red:     #f87171;
  --ba-spring:  cubic-bezier(0.34,1.56,0.64,1);
  --ba-ease:    cubic-bezier(0.22,1,0.36,1);
}

body {
  background: var(--ba-bg) !important;
  color: var(--ba-text) !important;
  font-family: 'Cabinet Grotesk', 'DM Sans', sans-serif !important;
}

/* ── Shader canvas ───────────────────────────────────────────────────── */
.biz-auth-canvas {
  position: fixed;
  inset: 0; z-index: 0;
  pointer-events: none;
}
/* Aurora version — no blur, torus renders sharp */


/* ── Back link ───────────────────────────────────────────────────────── */
.biz-auth-back {
  position: fixed;
  top: 22px; left: 22px;
  display: flex; align-items: center; gap: 6px;
  color: var(--ba-text3); text-decoration: none;
  font-size: 13px; font-weight: 600;
  z-index: 10; transition: color 0.15s ease;
}
.biz-auth-back svg { width: 16px; height: 16px; }
.biz-auth-back:hover { color: var(--ba-text); }

/* ── Shell ───────────────────────────────────────────────────────────── */
.biz-auth-shell {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px;
}

/* ── Card — transparent glass so shader shows through ───────────────── */
.biz-auth-card {
  width: 100%; max-width: 440px;
  padding: 36px;
  /* Semi-transparent — shader visible through */
  background: rgba(7,6,14,0.72);
  border: 0.5px solid rgba(167,139,250,0.2);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 0 0 0.5px rgba(167,139,250,0.07) inset,
    0 28px 72px rgba(0,0,0,0.55),
    0 0 40px rgba(124,58,237,0.08);
  display: flex; flex-direction: column; gap: 22px;
}
/* Wider card for step 1 register */
.biz-reg-card { max-width: 560px; }

/* ── Logo ────────────────────────────────────────────────────────────── */
.biz-auth-logo {
  display: flex; align-items: center; gap: 10px;
}
.biz-auth-logo img { height: 28px; width: auto; }
.biz-auth-brand { display: flex; flex-direction: column; line-height: 1; }
.biz-auth-brand-name {
  font-family: 'Neue Machina', sans-serif;
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--ba-text);
}
.biz-auth-brand-sub {
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ba-violet); opacity: 0.8; margin-top: 1px;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.biz-auth-header { display: flex; flex-direction: column; gap: 5px; }
.biz-auth-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 26px; font-weight: 900; letter-spacing: -0.03em;
  /* Gradient like dashboard */
  background: linear-gradient(130deg, #ede8ff 0%, #a78bfa 65%, #7c3aed 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.biz-auth-sub { font-size: 13.5px; color: var(--ba-text2); }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.biz-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 11px;
  font-size: 13px; line-height: 1.5;
}
.biz-alert svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.biz-alert--error {
  background: rgba(248,113,113,0.1); border: 0.5px solid rgba(248,113,113,0.25); color: var(--ba-red);
}
.biz-alert--warn {
  background: rgba(251,191,36,0.1); border: 0.5px solid rgba(251,191,36,0.25); color: var(--ba-amber);
}

/* ── Form ────────────────────────────────────────────────────────────── */
.biz-auth-form { display: flex; flex-direction: column; gap: 15px; }
.biz-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 480px) { .biz-form-grid { grid-template-columns: 1fr; } }

.biz-field { display: flex; flex-direction: column; gap: 6px; }
.biz-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ba-text3);
}
.biz-input {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  color: var(--ba-text);
  font-family: 'Cabinet Grotesk', sans-serif; font-size: 14px; font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  appearance: none;
}
.biz-input::placeholder { color: var(--ba-text3); font-weight: 400; }
.biz-input:focus {
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.1);
  background: rgba(255,255,255,0.07);
}
.biz-select option { background: #0e0d1a; color: var(--ba-text); }
.biz-textarea { min-height: 88px; resize: vertical; }

/* Password wrap */
.biz-pw-wrap { position: relative; }
.biz-pw-wrap .biz-input { padding-right: 44px; }
.biz-pw-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--ba-text3); padding: 4px;
  display: flex; transition: color 0.14s ease;
}
.biz-pw-toggle:hover { color: var(--ba-text2); }
.biz-pw-toggle svg { width: 16px; height: 16px; }

/* ── Chips ───────────────────────────────────────────────────────────── */
.biz-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.biz-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 50px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.1);
  font-size: 12.5px; font-weight: 600; color: var(--ba-text2);
  cursor: pointer; user-select: none;
  transition: all 0.14s ease;
}
.biz-chip input { display: none; }
.biz-chip:hover { border-color: rgba(167,139,250,0.3); color: var(--ba-text); }
.biz-chip.selected {
  background: var(--ba-vd);
  border-color: rgba(167,139,250,0.4);
  color: var(--ba-violet);
}

/* ── Info note ───────────────────────────────────────────────────────── */
.biz-info-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 11px;
  background: rgba(167,139,250,0.07);
  border: 0.5px solid rgba(167,139,250,0.18);
  font-size: 12.5px; color: var(--ba-text2); line-height: 1.55;
}
.biz-info-note svg { width: 15px; height: 15px; color: var(--ba-violet); flex-shrink: 0; margin-top: 1px; }

/* ── Submit button ───────────────────────────────────────────────────── */
.biz-submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 13px;
  border-radius: 12px; border: none; cursor: pointer;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 14px; font-weight: 800; letter-spacing: 0.01em;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative; overflow: hidden;
  text-decoration: none;
}
.biz-submit-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.biz-submit-btn svg { width: 16px; height: 16px; }
.biz-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.18);
}
.biz-submit-btn:active { transform: translateY(0); }

/* Ghost button */
.biz-ghost-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.1);
  color: var(--ba-text2); font-size: 13.5px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.biz-ghost-btn:hover { background: rgba(255,255,255,0.08); color: var(--ba-text); }

/* ── Divider ─────────────────────────────────────────────────────────── */
.biz-auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--ba-text3); font-size: 12px;
}
.biz-auth-divider::before, .biz-auth-divider::after {
  content: ''; flex: 1; height: 0.5px; background: var(--ba-border);
}

/* ── Footer link ─────────────────────────────────────────────────────── */
.biz-auth-foot {
  font-size: 13px; color: var(--ba-text2); text-align: center;
}
.biz-auth-foot a { color: var(--ba-violet); text-decoration: none; font-weight: 600; }
.biz-auth-foot a:hover { text-decoration: underline; }

/* ── Step bar ────────────────────────────────────────────────────────── */
.biz-step-bar { display: flex; align-items: center; }
.biz-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  transition: all 0.2s ease;
}
.biz-step-dot--active  { background: var(--ba-violet); color: #fff; }
.biz-step-dot--inactive { background: rgba(255,255,255,0.06); color: var(--ba-text3); border: 0.5px solid var(--ba-border); }
.biz-step-dot--done { background: rgba(52,211,153,0.12); color: var(--ba-green); border: 0.5px solid rgba(52,211,153,0.25); }
.biz-step-dot--done svg { width: 13px; height: 13px; }
.biz-step-line { flex: 1; height: 0.5px; background: var(--ba-border); margin: 0 8px; }
.biz-step-line--done { background: rgba(52,211,153,0.3); }

/* ── Done icon ───────────────────────────────────────────────────────── */
.biz-done-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto;
  background: rgba(52,211,153,0.1); border: 0.5px solid rgba(52,211,153,0.25);
  display: flex; align-items: center; justify-content: center;
}
.biz-done-icon svg { width: 26px; height: 26px; color: var(--ba-green); }

@media (max-width: 480px) {
  .biz-auth-card { padding: 26px 18px; }
  .biz-auth-title { font-size: 22px; }
  .biz-reg-card { padding: 26px 18px; }
}

.biz-label-help{
  display:flex;
  align-items:center;
  gap:6px;
}

.biz-help-icon{
  width:16px;
  height:16px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;

  font-size:10px;
  font-weight:700;

  color:var(--ba-violet);

  border:1px solid rgba(167,139,250,.35);

  background:rgba(167,139,250,.08);

  transition:.2s ease;
}

.biz-help-icon:hover{
  background:rgba(167,139,250,.15);
  box-shadow:0 0 15px rgba(167,139,250,.25);
}

.biz-field{
  position:relative;
}

.biz-password-tooltip{
  position:absolute;

  top:52px;
  left:0;

  width:260px;

  background:rgba(7,6,14,.88);

  border:1px solid rgba(167,139,250,.18);

  backdrop-filter:blur(20px);

  border-radius:14px;

  padding:12px;

  display:none;

  z-index:50;

  box-shadow:
    0 15px 40px rgba(0,0,0,.45),
    0 0 25px rgba(124,58,237,.12);
}

.biz-password-tooltip.active{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.pw-rule{
  display:flex;
  align-items:center;
  gap:8px;

  font-size:12px;

  color:var(--ba-text3);

  transition:.2s ease;
}

.pw-rule span{
  width:16px;
  text-align:center;
}

.pw-rule.valid{
  color:var(--ba-green);
}

.pw-rule.valid span{
  content:'';
}

.biz-help-icon svg{
  width:12px;
  height:12px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
}