/* ═══ wpi-components.css — Shared Nav / Footer / Cards / Modals ═══ */

/* ──────────────────────────────────────────────────────────────
   NAVIGATION
────────────────────────────────────────────────────────────────*/
.wpi-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* Dark-top pages: nav starts with dark bg to ensure readability at all scroll positions */
body.wpi-page--dark-top .wpi-nav {
  background: var(--wpi-bg-dark);
}

/* Light-top pages: nav forced solid dark immediately (no transparency) */
body.wpi-page--light-top .wpi-nav {
  background: var(--wpi-bg-dark);
  border-bottom-color: var(--wpi-border-dark);
}

/* Scrolled state: solid for all pages */
.wpi-nav.is-scrolled {
  background: var(--wpi-bg-dark);
  border-bottom-color: var(--wpi-border-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.wpi-nav__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 0;
}

/* Logo */
.wpi-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 40px;
}

.wpi-nav__logo img {
  height: 32px;
  width: auto;
  max-width: 180px;
}

/* Links (center) */
.wpi-nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
}

@media (min-width: 1024px) {
  .wpi-nav__links {
    display: flex;
  }
}

/* All nav pages: dark bg nav → white links */
.wpi-nav__link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wpi-fg-dark-secondary);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.wpi-nav__link:hover,
.wpi-nav__link.is-active {
  color: var(--wpi-fg-dark-primary);
  background: rgba(255,255,255,0.07);
}

/* CTA pair (right) */
.wpi-nav__actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .wpi-nav__actions {
    display: flex;
  }
}

.wpi-nav__signin {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wpi-fg-dark-secondary);
  border-radius: 6px;
  transition: color 0.2s ease;
}

.wpi-nav__signin:hover {
  color: var(--wpi-fg-dark-primary);
}

/* Mobile hamburger */
.wpi-nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .wpi-nav__hamburger {
    display: none;
  }
}

.wpi-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wpi-fg-dark-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wpi-nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.wpi-nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.wpi-nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.wpi-mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--wpi-bg-dark);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}

.wpi-mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wpi-mobile-menu__link {
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--wpi-fg-dark-secondary);
  border-radius: 8px;
  display: block;
}

.wpi-mobile-menu__link:hover {
  background: rgba(255,255,255,0.07);
  color: var(--wpi-fg-dark-primary);
}

.wpi-mobile-menu__divider {
  height: 1px;
  background: var(--wpi-border-dark);
  margin: 16px 0;
}

.wpi-mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

/* ──────────────────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────────────────────*/
.wpi-footer {
  background: var(--wpi-bg-dark);
  border-top: 1px solid var(--wpi-border-dark);
  padding: 64px 0 32px;
}

.wpi-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .wpi-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
  }
}

.wpi-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wpi-footer__logo img {
  height: 28px;
  width: auto;
}

.wpi-footer__tagline {
  font-size: 0.9rem;
  color: var(--wpi-fg-dark-secondary);
  line-height: 1.5;
  max-width: 280px;
}

.wpi-footer__social {
  display: flex;
  gap: 12px;
}

.wpi-footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--wpi-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wpi-fg-dark-secondary);
  font-size: 0.875rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.wpi-footer__social-link:hover {
  background: rgba(59,130,246,0.15);
  color: var(--wpi-accent-dark);
  border-color: rgba(59,130,246,0.3);
}

.wpi-footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wpi-fg-dark-primary);
  margin-bottom: 16px;
}

.wpi-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wpi-footer__link {
  font-size: 0.9rem;
  color: var(--wpi-fg-dark-secondary);
  transition: color 0.2s ease;
}

.wpi-footer__link:hover {
  color: var(--wpi-fg-dark-primary);
}

.wpi-footer__bottom {
  border-top: 1px solid var(--wpi-border-dark);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.wpi-footer__copy {
  font-size: 0.875rem;
  color: var(--wpi-fg-dark-tertiary);
}

.wpi-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.wpi-footer__legal-link {
  font-size: 0.875rem;
  color: var(--wpi-fg-dark-tertiary);
  transition: color 0.2s ease;
}

.wpi-footer__legal-link:hover {
  color: var(--wpi-fg-dark-secondary);
}

/* ──────────────────────────────────────────────────────────────
   CARDS (DARK)
────────────────────────────────────────────────────────────────*/
.wpi-card--dark {
  background: var(--wpi-bg-card-dark);
  border: 1px solid var(--wpi-border-dark);
  border-radius: var(--wpi-radius-card);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpi-card--dark:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: var(--wpi-shadow-hover);
}

.wpi-card--dark .wpi-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wpi-fg-dark-primary);
  margin-bottom: 8px;
}

.wpi-card--dark .wpi-card__body {
  font-size: 0.9rem;
  color: var(--wpi-fg-dark-secondary);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────
   CARDS (LIGHT)
────────────────────────────────────────────────────────────────*/
.wpi-card--light {
  background: var(--wpi-bg-white);
  border: 1px solid var(--wpi-border-light);
  border-radius: var(--wpi-radius-card);
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.wpi-card--light:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.wpi-card--light .wpi-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wpi-fg-light-primary);
  margin-bottom: 8px;
}

.wpi-card--light .wpi-card__body {
  font-size: 0.9rem;
  color: var(--wpi-fg-light-secondary);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────
   SIGNAL / METRIC TILES
────────────────────────────────────────────────────────────────*/
.wpi-metric-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 16px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--wpi-radius-metric);
  gap: 2px;
}

.wpi-metric-chip__number {
  font-family: var(--wpi-font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wpi-accent-dark);
  line-height: 1.2;
}

.wpi-metric-chip__label {
  font-size: 0.75rem;
  color: var(--wpi-fg-dark-secondary);
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────
   FAQ ACCORDION
────────────────────────────────────────────────────────────────*/
.wpi-faq__item {
  border-bottom: 1px solid var(--wpi-border-light);
}

.wpi-section--white .wpi-faq__item,
.wpi-section--light .wpi-faq__item {
  border-bottom-color: var(--wpi-border-light);
}

.wpi-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--wpi-font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--wpi-fg-light-primary);
  line-height: 1.4;
}

.wpi-faq__question i {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--wpi-fg-light-tertiary);
  transition: transform 0.2s ease;
}

.wpi-faq__item.is-open .wpi-faq__question i {
  transform: rotate(180deg);
}

.wpi-faq__answer {
  display: none;
  padding: 0 0 20px 0;
  font-size: 0.9375rem;
  color: var(--wpi-fg-light-secondary);
  line-height: 1.7;
}

.wpi-faq__item.is-open .wpi-faq__answer {
  display: block;
}

/* ──────────────────────────────────────────────────────────────
   TESTIMONIAL CARD
────────────────────────────────────────────────────────────────*/
.wpi-testimonial-card {
  background: var(--wpi-bg-card-dark);
  border: 1px solid var(--wpi-border-dark);
  border-radius: var(--wpi-radius-card);
  padding: 28px;
}

.wpi-testimonial-card blockquote {
  font-size: 1rem;
  color: var(--wpi-fg-dark-primary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.wpi-testimonial-card blockquote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--wpi-accent-dark);
  line-height: 0.5;
  display: block;
  margin-bottom: 12px;
  font-style: normal;
}

.wpi-testimonial-card__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wpi-fg-dark-primary);
}

.wpi-testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--wpi-fg-dark-secondary);
}

/* ──────────────────────────────────────────────────────────────
   BLOG CARD
────────────────────────────────────────────────────────────────*/
.wpi-blog-card {
  background: var(--wpi-bg-white);
  border: 1px solid var(--wpi-border-light);
  border-radius: var(--wpi-radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wpi-blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.wpi-blog-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto;
  display: block;
}

.wpi-blog-card__body {
  padding: 20px;
}

.wpi-blog-card__category {
  margin-bottom: 10px;
}

.wpi-blog-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--wpi-fg-light-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.wpi-blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--wpi-fg-light-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.wpi-blog-card__meta {
  font-size: 0.8125rem;
  color: var(--wpi-fg-light-tertiary);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ──────────────────────────────────────────────────────────────
   ARTICLE BODY (scoped — always light-top, per scope_contract)
────────────────────────────────────────────────────────────────*/
body.wpi-page--light-top .wpi-article-body h2,
body.wpi-page--light-top .wpi-article-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wpi-fg-light-primary);
  margin-top: 2em;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}

body.wpi-page--light-top .wpi-article-body h3 {
  font-size: 1.25rem;
}

body.wpi-page--light-top .wpi-article-body p {
  font-size: 1.0625rem;
  color: var(--wpi-fg-light-secondary);
  line-height: 1.75;
  margin-bottom: 1.25em;
}

body.wpi-page--light-top .wpi-article-body ul,
body.wpi-page--light-top .wpi-article-body ol {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 1.25em;
}

body.wpi-page--light-top .wpi-article-body li {
  font-size: 1.0625rem;
  color: var(--wpi-fg-light-secondary);
  line-height: 1.75;
  margin-bottom: 0.5em;
}

body.wpi-page--light-top .wpi-article-body a {
  color: var(--wpi-accent-light);
  text-decoration: underline;
}

body.wpi-page--light-top .wpi-article-body code {
  font-family: var(--wpi-font-mono);
  font-size: 0.875em;
  background: var(--wpi-bg-light);
  color: var(--wpi-fg-light-primary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--wpi-border-light);
}

body.wpi-page--light-top .wpi-article-body blockquote {
  border-left: 3px solid var(--wpi-accent-light);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--wpi-bg-light);
  border-radius: 0 8px 8px 0;
}

body.wpi-page--light-top .wpi-article-body blockquote p {
  font-size: 1.0625rem;
  color: var(--wpi-fg-light-secondary);
  margin-bottom: 0;
  font-style: italic;
}

/* ──────────────────────────────────────────────────────────────
   LEGAL CONTENT (scoped — always light-top)
────────────────────────────────────────────────────────────────*/
body.wpi-page--light-top .wpi-legal-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--wpi-fg-light-primary);
  margin-bottom: 8px;
}

body.wpi-page--light-top .wpi-legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--wpi-fg-light-primary);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

body.wpi-page--light-top .wpi-legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wpi-fg-light-primary);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

body.wpi-page--light-top .wpi-legal-content p {
  font-size: 0.9375rem;
  color: var(--wpi-fg-light-secondary);
  line-height: 1.75;
  margin-bottom: 1em;
}

body.wpi-page--light-top .wpi-legal-content ul,
body.wpi-page--light-top .wpi-legal-content ol {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 1em;
}

body.wpi-page--light-top .wpi-legal-content li {
  font-size: 0.9375rem;
  color: var(--wpi-fg-light-secondary);
  line-height: 1.75;
  margin-bottom: 0.4em;
}

body.wpi-page--light-top .wpi-legal-content a {
  color: var(--wpi-accent-light);
  text-decoration: underline;
}

body.wpi-page--light-top .wpi-legal-content address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--wpi-fg-light-secondary);
  line-height: 1.8;
}

body.wpi-page--light-top .wpi-legal-content .legal-meta {
  font-size: 0.875rem;
  color: var(--wpi-fg-light-tertiary);
  margin-bottom: 4px;
}

body.wpi-page--light-top .wpi-legal-content section {
  margin-bottom: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.875rem;
}

.legal-table th {
  background: var(--wpi-bg-light);
  color: var(--wpi-fg-light-primary);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--wpi-border-light);
}

.legal-table td {
  padding: 10px 14px;
  border: 1px solid var(--wpi-border-light);
  color: var(--wpi-fg-light-secondary);
  vertical-align: top;
}

/* ──────────────────────────────────────────────────────────────
   SECTION HEADER BLOCK
────────────────────────────────────────────────────────────────*/
.wpi-section-header {
  margin-bottom: 56px;
}

.wpi-section-header--center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.wpi-section-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.wpi-section-header__title {
  margin-bottom: 16px;
}

.wpi-section-header__desc {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.wpi-section--dark .wpi-section-header__eyebrow,
.wpi-section--dark-alt .wpi-section-header__eyebrow {
  color: var(--wpi-accent-dark);
}

.wpi-section--dark .wpi-section-header__title,
.wpi-section--dark-alt .wpi-section-header__title {
  color: var(--wpi-fg-dark-primary);
}

.wpi-section--dark .wpi-section-header__desc,
.wpi-section--dark-alt .wpi-section-header__desc {
  color: var(--wpi-fg-dark-secondary);
}

.wpi-section--light .wpi-section-header__eyebrow,
.wpi-section--white .wpi-section-header__eyebrow {
  color: var(--wpi-accent-light);
}

.wpi-section--light .wpi-section-header__title,
.wpi-section--white .wpi-section-header__title {
  color: var(--wpi-fg-light-primary);
}

.wpi-section--light .wpi-section-header__desc,
.wpi-section--white .wpi-section-header__desc {
  color: var(--wpi-fg-light-secondary);
}

/* ──────────────────────────────────────────────────────────────
   DASHBOARD MOCK / TERMINAL
────────────────────────────────────────────────────────────────*/
.wpi-dash-mock {
  background: var(--wpi-bg-card-dark);
  border: 1px solid var(--wpi-border-dark);
  border-radius: var(--wpi-radius-card);
  overflow: hidden;
}

.wpi-dash-mock__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--wpi-border-dark);
}

.wpi-dash-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.wpi-dash-mock__dot--red    { background: #FF5F56; }
.wpi-dash-mock__dot--yellow { background: #FFBD2E; }
.wpi-dash-mock__dot--green  { background: #27C93F; }

.wpi-dash-mock__title {
  font-size: 0.75rem;
  color: var(--wpi-fg-dark-secondary);
  margin-left: 8px;
  font-family: var(--wpi-font-mono);
}

.wpi-dash-mock__body {
  padding: 16px;
  font-family: var(--wpi-font-mono);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--wpi-fg-dark-secondary);
}

.wpi-tt-cmd    { color: var(--wpi-fg-dark-primary); }
.wpi-tt-ok     { color: var(--wpi-accent-success); }
.wpi-tt-warn   { color: var(--wpi-accent-warning); }
.wpi-tt-risk   { color: var(--wpi-accent-danger); }
.wpi-tt-blue   { color: var(--wpi-accent-dark); }
.wpi-tt-dim    { color: var(--wpi-fg-dark-tertiary); }

/* Deal row */
.wpi-deal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--wpi-border-dark);
  margin-bottom: 8px;
  background: rgba(0,0,0,0.15);
  transition: background 0.15s ease;
}

.wpi-deal-row:hover {
  background: rgba(59,130,246,0.05);
}

.wpi-deal-row__name {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wpi-fg-dark-primary);
  font-family: var(--wpi-font-mono);
}

.wpi-deal-row__score {
  font-family: var(--wpi-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.wpi-deal-row__score--high {
  background: rgba(16,185,129,0.15);
  color: #10B981;
}

.wpi-deal-row__score--med {
  background: rgba(245,158,11,0.15);
  color: #F59E0B;
}

.wpi-deal-row__score--low {
  background: rgba(239,68,68,0.15);
  color: #EF4444;
}

/* ──────────────────────────────────────────────────────────────
   AUTH (LOGIN / SIGNUP) LAYOUT
────────────────────────────────────────────────────────────────*/
.wpi-auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .wpi-auth-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.wpi-auth-brand {
  background: var(--wpi-bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vw, 80px);
  gap: 32px;
  display: none;
}

@media (min-width: 768px) {
  .wpi-auth-brand {
    display: flex;
  }
}

.wpi-auth-brand__logo img {
  height: 32px;
  width: auto;
}

.wpi-auth-brand__headline {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--wpi-fg-dark-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.wpi-auth-brand__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
}

.wpi-auth-brand__stat-num {
  font-family: var(--wpi-font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--wpi-accent-dark);
}

.wpi-auth-brand__stat-label {
  font-size: 0.875rem;
  color: var(--wpi-fg-dark-secondary);
}

.wpi-auth-form-panel {
  background: var(--wpi-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
}

.wpi-auth-form-panel__inner {
  width: 100%;
  max-width: 400px;
}

.wpi-auth-form-panel__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wpi-fg-light-primary);
  margin-bottom: 8px;
}

.wpi-auth-form-panel__sub {
  font-size: 0.9375rem;
  color: var(--wpi-fg-light-secondary);
  margin-bottom: 32px;
}

.wpi-auth-form-panel__logo {
  display: none;
  margin-bottom: 28px;
}

@media (max-width: 767px) {
  .wpi-auth-form-panel__logo {
    display: block;
  }
  .wpi-auth-form-panel__logo img {
    height: 28px;
    width: auto;
  }
}

/* Form fields */
.wpi-form-field {
  margin-bottom: 20px;
}

.wpi-form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wpi-fg-light-primary);
  margin-bottom: 6px;
}

.wpi-form-field input,
.wpi-form-field select,
.wpi-form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: var(--wpi-font-sans);
  color: var(--wpi-fg-light-primary);
  background: var(--wpi-bg-white);
  border: 1px solid var(--wpi-border-light);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.wpi-form-field input:focus,
.wpi-form-field select:focus,
.wpi-form-field textarea:focus {
  border-color: var(--wpi-accent-decorative);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.wpi-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.wpi-form-field select option {
  background: var(--wpi-bg-white);
  color: var(--wpi-fg-light-primary);
}

.wpi-form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.wpi-auth-link {
  font-size: 0.875rem;
  color: var(--wpi-fg-light-secondary);
  text-align: center;
  margin-top: 20px;
}

.wpi-auth-link a {
  color: var(--wpi-accent-light);
  font-weight: 500;
}

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