/* ── DESIGN TOKENS (Variant C — Atelier) ──────────────────────────────────── */
.pb-login-shell {
  --heading:      'Playfair Display', Georgia, serif;
  --body:         'Lato', system-ui, sans-serif;

  --panel-bg:     #0B1F3A;
  --panel-text:   rgba(200,215,235,.7);
  --panel-heading:#FFFFFF;
  --panel-accent: #C9A84C;

  --form-bg:      #EEF2F8;
  --form-card-bg: #FFFFFF;

  --text-1:       #0B1F3A;
  --text-2:       #3D5068;
  --text-3:       #7A8FA6;
  --border:       #DDE4EE;

  --input-bg:     #FFFFFF;
  --input-border: #C5CEDB;
  --input-focus:  #0B1F3A;

  --btn-bg:       #0B1F3A;
  --btn-text:     #FFFFFF;
  --btn-hover:    #132F57;

  --link:         #0B1F3A;
  --accent:       #C9A84C;

  --error-bg:     #FEF0F0;
  --error-text:   #9B1C1C;
  --success-bg:   #EAF5EE;
  --success-text: #1A6B3A;

  --dot-bg:       #DDE4EE;
  --dot-fill:     #0B1F3A;
  --dot-done:     #C9A84C;
}

/* ── ESCAPE WORDPRESS CONTAINERS ─────────────────────────────────────────── */
/* Hide all WP wrappers; the shell takes over the full viewport via fixed.   */
body.pb-login-page {
  overflow: hidden;
}

body.pb-login-page #pb-page-wrapper,
body.pb-login-page #pb-main-content,
body.pb-login-page .pb-page-content,
body.pb-login-page .entry-content {
  display: contents;
}

/* ── SHELL & LAYOUT ───────────────────────────────────────────────────────── */
.pb-login-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 420px 1fr;
  font-family: var(--body);
  z-index: 9999;
  overflow-y: auto;
}


/* ── LEFT: BRAND PANEL ────────────────────────────────────────────────────── */
.pb-login-panel {
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.pb-login-panel::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  pointer-events: none;
}

.pb-login-panel::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}

.pb-login-panel__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
}

.pb-login-panel__mark {
  width: 40px; height: 40px;
  background: var(--panel-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--panel-bg);
  flex-shrink: 0;
  letter-spacing: .02em;
}

.pb-login-panel__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--panel-heading);
}

.pb-login-panel__content {
  padding: 48px 0 40px;
}

.pb-login-panel__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--panel-accent);
  margin-bottom: 16px;
}

.pb-login-panel__heading {
  font-family: var(--heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--panel-heading);
  line-height: 1.2;
  margin-bottom: 16px;
}

.pb-login-panel__sub {
  font-size: 14px;
  color: var(--panel-text);
  line-height: 1.7;
  max-width: 280px;
}

.pb-login-panel__divider {
  width: 40px; height: 2px;
  background: var(--panel-accent);
  margin: 28px 0;
  border-radius: 2px;
}

.pb-login-panel__stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--panel-text);
  margin-bottom: 4px;
}

.pb-login-panel__stat-value {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--panel-heading);
  line-height: 1.5;
}

.pb-login-panel__footer {
  font-size: 12px;
  color: var(--panel-text);
  opacity: .6;
}

/* ── RIGHT: FORM AREA ─────────────────────────────────────────────────────── */
.pb-login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--form-bg);
  padding: 48px 48px;
}

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

.pb-login-card-inner {
  background: var(--form-card-bg);
  border-radius: 16px;
  padding: 36px 36px 32px;
  box-shadow: 0 4px 32px rgba(11,31,58,.08);
}

/* ── STEP DOTS ────────────────────────────────────────────────────────────── */
.pb-step-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
}

.pb-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot-bg);
  transition: background .3s, transform .3s;
}

.pb-step-dot.is-active {
  background: var(--dot-fill);
  transform: scale(1.2);
}

.pb-step-dot.is-done {
  background: var(--dot-done);
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
.pb-login-title {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.pb-login-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── FORM FIELDS ──────────────────────────────────────────────────────────── */
.pb-field {
  margin-bottom: 16px;
}

.pb-field__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.pb-field__input {
  width: 100%;
  padding: 11px 14px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--text-1);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.pb-field__input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}

.pb-field__input::placeholder {
  color: var(--text-3);
}

/* ── FORGOT PASSWORD ROW ──────────────────────────────────────────────────── */
.pb-form-row-end {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.pb-form-link {
  font-size: 13px;
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.pb-form-link:hover {
  text-decoration: underline;
}

/* ── SUBMIT BUTTON ────────────────────────────────────────────────────────── */
.pb-login-btn {
  width: 100%;
  padding: 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: background .15s, transform .1s;
}

.pb-login-btn:hover {
  background: var(--btn-hover);
}

.pb-login-btn:active {
  transform: scale(.98);
}

.pb-login-btn:disabled {
  opacity: .6;
  pointer-events: none;
}

/* ── SPINNER ──────────────────────────────────────────────────────────────── */
.pb-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: pb-spin .7s linear infinite;
  flex-shrink: 0;
}

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

/* ── ALERTS ───────────────────────────────────────────────────────────────── */
.pb-form-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.pb-form-alert--error {
  background: var(--error-bg);
  color: var(--error-text);
}

.pb-form-alert--success {
  background: var(--success-bg);
  color: var(--success-text);
}

/* ── BACK LINK ────────────────────────────────────────────────────────────── */
.pb-form-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--body);
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 4px 0;
  transition: color .15s;
}

.pb-form-back:hover {
  color: var(--text-1);
}

/* ── 2FA CODE GRID ────────────────────────────────────────────────────────── */
.pb-twofa-icon {
  width: 48px; height: 48px;
  background: var(--success-bg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--success-text);
}

.pb-code-grid {
  display: flex;
  gap: 8px;
  margin: 8px 0 20px;
  justify-content: center;
}

.pb-code-input {
  width: 44px; height: 52px;
  border: 1.5px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.pb-code-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}

.pb-code-input.is-filled {
  border-color: var(--accent);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .pb-login-shell {
    grid-template-columns: 1fr;
  }

  .pb-login-panel {
    display: none;
  }

  .pb-login-form-area {
    padding: 48px 24px 32px;
    align-items: flex-start;
  }
}
