/* ═══════════════════════════════════════════════════════════════════════════
   Smartboost — Login / Portal CSS
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --brand:        #4f6af4;
  --brand-hover:  #3d58e4;
  --panel-bg:     #1a1926;
  --panel-accent: #4f6af4;
  --surface:      #ffffff;
  --bg:           #f6f5f1;
  --border:       #e5e4e0;
  --text:         #1a1926;
  --text-2:       #5a5970;
  --text-muted:   #9896aa;
  --danger:       #dc2626;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 6px; --r-md: 8px; --r-lg: 14px;
  --transition: 140ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.sb-login-page {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Two-column wrapper ─────────────────────────────────────────────────────── */
.sb-login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Form side ──────────────────────────────────────────────────────────────── */
.sb-login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--surface);
}
.sb-login-form-inner {
  width: 100%;
  max-width: 380px;
}

.sb-login-logo { margin-bottom: 20px; }
.sb-login-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}

.sb-login-logo-text img {
  max-width: 175px;
}

.sb-login-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.sb-login-subheading {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 28px;
}

.sb-login-form { display: flex; flex-direction: column; gap: 18px; }

.sb-field { display: flex; flex-direction: column; gap: 6px; }
.sb-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sb-field input {
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fafaf8;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.sb-field input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(79,106,244,.12);
}

.sb-forgot-link {
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.sb-forgot-link:hover { text-decoration: underline; }

.sb-password-wrap { position: relative; }
.sb-password-wrap input { padding-right: 40px; }
.sb-toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
}
.sb-toggle-pw:hover { color: var(--text-2); }

.sb-btn-primary {
  height: 42px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.sb-btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.sb-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.sb-btn-full { width: 100%; }

.sb-login-error {
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r);
  color: var(--danger);
  font-size: 13px;
}

/* Spinner */
.sb-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sbSpin .6s linear infinite;
}
@keyframes sbSpin { to { transform: rotate(360deg); } }

/* ── Image / brand panel ────────────────────────────────────────────────────── */
.sb-login-panel-side {
  /* background: var(--panel-bg); */

  background-image: url('/wp-content/uploads/2026/03/login.webp');
  background-size: cover;
  background-position: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
.sb-login-panel-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,106,244,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,106,244,.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Glow blob */
.sb-login-panel-side::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(79,106,244,.25) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.sb-login-panel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
}
.sb-login-panel-logo {
  width: 72px; height: 72px;
  /* background: var(--panel-accent); */
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(79,106,244,.4);
}
.sb-login-panel-tagline {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  max-width: 280px;
  line-height: 1.5;
}

/* ── Portal coming soon ─────────────────────────────────────────────────────── */
.sb-portal-soon-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.sb-portal-soon-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.sb-portal-soon-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text);
}
.sb-portal-soon-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sb-login-wrap {
    grid-template-columns: 1fr;
  }
  .sb-login-panel-side {
    display: none;
  }
  .sb-login-form-side {
    padding: 40px 24px;
  }
}

[x-cloak] { display: none !important; }
