/* Seejad Unified WhatsApp & Email OTP Login (Account Login & Journal 3 Popup) */
.sj-login-wrap {
  --sj-gold: #F8BC10;
  --sj-gold-dark: #C8AC00;
  --sj-ink: #111827;
  --sj-muted: #6b7280;
  --sj-border: #e5e7eb;
  --sj-bg: #f8fafc;
  --sj-danger: #dc2626;
  --sj-success: #15803d;
  --sj-font: 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  max-width: 470px;
  margin: 18px auto 36px;
  font-family: var(--sj-font);
}

.popup-content .sj-login-wrap,
body.is-popup .sj-login-wrap {
  margin: 0 auto;
  max-width: 100%;
}

.sj-login-card {
  background: #ffffff;
  border: 1px solid var(--sj-border);
  border-top: 4px solid var(--sj-gold);
  border-radius: 16px;
  padding: 28px 26px 24px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.popup-content .sj-login-card,
body.is-popup .sj-login-card {
  border: 0;
  border-top: 4px solid var(--sj-gold);
  border-radius: 0;
  box-shadow: none;
  padding: 22px 20px 18px;
}

.sj-login-title {
  margin: 0 0 6px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--sj-ink) !important;
  text-align: center;
  line-height: 1.35;
}

.sj-login-sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--sj-muted);
  text-align: center;
  line-height: 1.6;
}

.sj-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.sj-login-tabs.is-hidden {
  display: none;
}

.sj-login-tab-btn {
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4b5563;
  font-family: var(--sj-font);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sj-login-tab-btn.is-active {
  background: #ffffff;
  color: var(--sj-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

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

.sj-login-panel.is-active {
  display: block;
}

.sj-login-field {
  margin-bottom: 14px;
  text-align: start;
}

.sj-login-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--sj-ink);
  margin-bottom: 6px;
}

.sj-login-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sj-login-field-row label {
  margin-bottom: 0;
}

.sj-login-forgot {
  font-size: 12px;
  font-weight: 600;
  color: var(--sj-gold-dark);
  text-decoration: none;
}

.sj-login-forgot:hover {
  text-decoration: underline;
}

.sj-login-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--sj-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--sj-ink);
  font-family: var(--sj-font);
  font-size: 14.5px;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.sj-login-input:focus {
  outline: none;
  border-color: var(--sj-ink);
  box-shadow: 0 0 0 3px rgba(248, 188, 16, 0.22);
}

.sj-login-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sj-muted);
  line-height: 1.5;
}

.sj-login-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sj-login-cta {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--sj-ink);
  color: #ffffff;
  font-family: var(--sj-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.16s ease, transform 0.12s ease;
}

.sj-login-cta:hover {
  background: #1f2937;
}

.sj-login-cta.is-gold {
  background: var(--sj-gold);
  color: var(--sj-ink);
  box-shadow: 0 4px 14px rgba(248, 188, 16, 0.32);
}

.sj-login-cta.is-gold:hover {
  background: #e5ab08;
}

.sj-login-cta:disabled {
  opacity: 0.6;
  cursor: wait;
}

.sj-login-alert {
  display: none;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.sj-login-alert.is-visible {
  display: block;
}

.sj-login-success {
  display: none;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.sj-login-success.is-visible {
  display: block;
}

.sj-login-dev-pill {
  display: none;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px dashed var(--sj-gold);
  color: #92400e;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}

.sj-login-dev-pill.is-visible {
  display: block;
}

.sj-login-otp-head {
  text-align: center;
  margin-bottom: 16px;
}

.sj-login-otp-target {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--sj-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sj-ink);
}

.sj-login-change-btn {
  border: 0;
  background: transparent;
  color: var(--sj-gold-dark);
  font-family: var(--sj-font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.sj-login-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  direction: ltr;
}

.sj-login-otp-digit {
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--sj-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--sj-ink);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.sj-login-otp-digit:focus {
  outline: none;
  border-color: var(--sj-ink);
  box-shadow: 0 0 0 3px rgba(248, 188, 16, 0.25);
}

.sj-login-otp-foot {
  text-align: center;
  margin-top: 12px;
}

.sj-login-resend-btn,
.sj-login-pwd-toggle {
  border: 0;
  background: transparent;
  color: var(--sj-muted);
  font-family: var(--sj-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px;
}

.sj-login-pwd-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.sj-login-resend-btn:disabled {
  text-decoration: none;
  cursor: default;
  opacity: 0.7;
}

.sj-login-typo-hint {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sj-login-typo-fix {
  border: 0;
  border-radius: 7px;
  background: var(--sj-ink);
  color: #ffffff;
  padding: 3px 9px;
  font-family: var(--sj-font);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.sj-login-footer-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 13px;
  color: var(--sj-muted);
}

.sj-login-footer-links a {
  color: var(--sj-ink);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .sj-login-card {
    padding: 22px 16px 18px;
  }
  .sj-login-otp-digit {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .sj-login-grid2 {
    grid-template-columns: 1fr;
  }
}
