/* ============================================================
   AUTH PAGES — FINAL: fills space, purple overlay, bigger text
   ============================================================ */

:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --auth-surface: #ffffff;
  --auth-primary: #4c44ec;
  --auth-primary-dark: #312fab;
  --auth-text: #1f2937;
  --auth-text-muted: #6b7280;
  --auth-border: #e5e7eb;
  --auth-danger: #ef4444;
  --auth-success: #16a34a;
}

.auth-login {
  margin: 0;
  background: #f8f7ff;
  color: var(--auth-text);
  overflow-x: hidden;
}

.auth-login *, .auth-login *::before, .auth-login *::after { box-sizing: border-box; }

/* ── TWO COLUMNS ── */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   HERO — fills entire column, no dead space
   ═══════════════════════════════════════════════════ */
.auth-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://jaytechcloud.com/storage/new/ladies-pointing.jpeg');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(74,30,140,0.92) 0%, rgba(60,20,120,0.75) 50%, rgba(40,10,80,0.90) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3.5vw, 52px);
  gap: 16px;
}

/* ── BRAND ── */
.hero-brand {
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}

/* ── SLIDER fills middle ── */
.hero-slider {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: slideTextFade 24s infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.8vh, 22px);
}

.hero-slide-1 { animation-delay: 0s; }
.hero-slide-2 { animation-delay: 4s; }
.hero-slide-3 { animation-delay: 8s; }
.hero-slide-4 { animation-delay: 12s; }
.hero-slide-5 { animation-delay: 16s; }
.hero-slide-6 { animation-delay: 20s; }

@keyframes slideTextFade {
  0%    { opacity: 0; transform: translateY(14px); }
  4%    { opacity: 1; transform: translateY(0); }
  13%   { opacity: 1; transform: translateY(0); }
  17%   { opacity: 0; transform: translateY(-10px); }
  100%  { opacity: 0; transform: translateY(-10px); }
}

.slide-tag {
  display: inline-block;
  width: fit-content;
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f9c6ff;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
}

.slide-headline {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.slide-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  max-width: 95%;
  margin: 0;
}

/* ── PROGRESS BARS ── */
.hero-progress {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.hero-progress span {
  width: clamp(28px, 3vw, 40px);
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.24);
  animation: progressPulse 24s infinite;
}

.hero-progress span:nth-child(1) { animation-delay: 0s; }
.hero-progress span:nth-child(2) { animation-delay: 4s; }
.hero-progress span:nth-child(3) { animation-delay: 8s; }
.hero-progress span:nth-child(4) { animation-delay: 12s; }
.hero-progress span:nth-child(5) { animation-delay: 16s; }
.hero-progress span:nth-child(6) { animation-delay: 20s; }

@keyframes progressPulse {
  0%, 100% { background: rgba(255,255,255,0.24); }
  4%, 13%  { background: #f9c6ff; }
  17%      { background: rgba(255,255,255,0.24); }
}

/* ── BUSINESS CHIPS at bottom, no scroll, wrap ── */
.biz-section {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: clamp(10px, 1.5vh, 16px);
  flex-shrink: 0;
}

.biz-section-title {
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
}

.biz-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}

.biz-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.94);
  font-size: clamp(0.7rem, 0.82vw, 0.78rem);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.biz-chip:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(249,198,255,0.6);
  transform: translateY(-1px);
}

.biz-chip .biz-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #f9c6ff;
  stroke: currentColor;
}

/* ═══════════════════════════════════════════════════
   PANEL — right side form
   ═══════════════════════════════════════════════════ */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  overflow-y: auto;
  background: #f8f7ff;
}

.auth-panel-inner {
  background: var(--auth-surface);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 0 18px 44px -16px rgba(76,68,236,0.18), 0 4px 12px -4px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── PANEL BRANDING ── */
.panel-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  margin-bottom: 4px;
}

.panel-logo {
  max-width: 160px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.panel-business-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--auth-text);
  text-align: center;
  margin-bottom: 8px;
}

.auth-page .panel-title {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 800;
  margin: 0;
  text-align: center;
  letter-spacing: -0.02em;
}

.auth-page .panel-subtitle {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--auth-text-muted);
  line-height: 1.55;
  margin: 0;
  text-align: center;
}

/* ── FORM ── */
.auth-page .auth-panel-inner form { display: grid; gap: 16px; }

.auth-page .field { display: grid; gap: 6px; }

.auth-page .field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.auth-page .input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--auth-border);
  border-radius: 999px;
  padding: 0 16px;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-page .input-shell:focus-within {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(76,68,236,0.12);
  background: #fff;
}

.auth-page .input-shell input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.auth-page .input-shell input:focus { outline: none; }

.auth-page .input-addon {
  color: #9ca3af;
  font-size: 0.9rem;
}

.auth-page .toggle-password {
  border: none;
  background: none;
  color: var(--auth-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.auth-page .auth-btn {
  padding: 13px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: filter 0.2s;
}

.auth-page .auth-btn:hover { filter: brightness(1.06); }

.auth-page .auth-btn.auth-is-loading .btn-text { display: none; }

.auth-page .auth-btn .btn-loading {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.auth-page .auth-btn.auth-is-loading .btn-loading { display: inline-flex; }

.auth-page .auth-link {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-page .auth-link:hover { text-decoration: underline; }

.auth-page .form-meta {
  display: flex;
  justify-content: flex-end;
  font-size: 0.85rem;
}

.auth-page .auth-alert {
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  font-size: 0.92rem;
  line-height: 1.5;
  background: #fff;
}

.auth-page .auth-alert.success {
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.35);
  color: var(--auth-success);
}

.auth-page .auth-alert.error {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.35);
  color: var(--auth-danger);
}

.auth-page .auth-alert ul { margin: 0; padding-left: 1.2rem; }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — mobile shows only the form
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .auth-page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }
  .auth-hero {
    display: none;
  }
  .auth-panel {
    min-height: 100dvh;
    padding: 24px 20px;
    overflow: visible;
  }
}

@media (max-width: 480px) {
  .auth-panel { padding: 20px 16px; }
  .auth-panel-inner { padding: 24px 20px; border-radius: 16px; }
  .auth-page .panel-title { font-size: 1.35rem; }
  .panel-logo-wrap { height: 56px; }
  .panel-logo { max-height: 56px; }
}
