/* ============================================================
   frontend-pages.css
   Unified styles for all public-facing inner pages
   (auth, blog, pricing, FAQ, testimonials, contact, feedback,
    static pages, error pages)
   Matches the landing page design system from marketing.css
   ============================================================ */

/* ===== Page hero banner (replaces old #titlebar) ===== */
.page-hero {
  background: var(--teal-hero, #0d9488);
  color: #fff;
  padding: 48px 0 40px;
  text-align: center;
}
.page-hero .h2, .page-hero h2 {
  font-family: var(--font-heading, "DM Sans", system-ui, sans-serif);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 8px;
}
.page-hero .page-hero__sub {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  list-style: none;
  padding: 0;
}
.page-hero .breadcrumb a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 600;
}
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { opacity: .5; }

/* ===== Inner page content area ===== */
.page-content {
  padding: 48px 0 64px;
  background: var(--bg, #f0fdfa);
  min-height: 40vh;
}
.page-content .container { max-width: 1280px; }

/* ===== Auth pages (login, register, verify, password reset) ===== */
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.12));
  border-radius: var(--radius-lg, 22px);
  padding: 36px 32px;
  box-shadow: var(--shadow, 0 4px 24px rgba(0,0,0,.06));
}
.auth-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #000;
  margin: 0 0 6px;
}
.auth-card__sub {
  color: var(--muted, #1f2937);
  font-size: 15px;
  margin: 0 0 24px;
}
.auth-card__sub a {
  color: var(--accent, #0d9488);
  font-weight: 700;
  text-decoration: none;
}
.auth-card__sub a:hover { color: var(--teal-hero-deep, #0f766e); }

/* Social login buttons */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  text-decoration: none;
}
.auth-social__btn:hover {
  background: var(--surface2, #f5f6f8);
  transform: translateY(-1px);
}
.auth-social__btn img { width: 20px; height: 20px; }
.auth-social__btn--fb { background: #1877F2; color: #fff; border-color: #1877F2; }
.auth-social__btn--fb:hover { background: #166FE5; color: #fff; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Form inputs */
.mv-form-group {
  margin-bottom: 16px;
}
.mv-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
}
.mv-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #000;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mv-input::placeholder { color: #9ca3af; }
.mv-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim, rgba(13,148,136,.15));
}
.mv-input.has-error { border-color: #ef4444; }
textarea.mv-input { resize: vertical; min-height: 120px; }
select.mv-input { appearance: auto; }

.mv-error {
  display: block;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.mv-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0;
}
.mv-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.mv-checkbox a { color: var(--accent); font-weight: 700; text-decoration: none; }
.mv-checkbox a:hover { color: var(--teal-hero-deep); }

.mv-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}
.mv-form-row a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.mv-form-row a:hover { color: var(--teal-hero-deep); }

/* Primary submit button (full-width) */
.mv-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.mv-btn-submit:hover {
  background: var(--teal-hero-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,148,136,.35);
}

/* ===== FAQ page ===== */
.faq-page-list { max-width: 760px; }

/* ===== Pricing page ===== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.pricing-toggle__btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.pricing-toggle__btn.active,
.pricing-toggle__btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===== Testimonials page ===== */
.testimonials-page-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) { .testimonials-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .testimonials-page-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Contact / Feedback page ===== */
.contact-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1.5fr 1fr; } }

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 22px);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: #000;
  margin: 0 0 16px;
}
.contact-info-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: #000;
  font-size: 15px;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item a { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-info-item a:hover { color: var(--teal-hero-deep); }

/* ===== Blog page ===== */
.blog-page-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 640px) { .blog-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .blog-page-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-single-content {
  max-width: 800px;
  margin: 0 auto;
}
.blog-single-content .blog-body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.blog-single-content .blog-body h2,
.blog-single-content .blog-body h3 {
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  margin: 28px 0 12px;
}
.blog-single-content .blog-body p { margin: 0 0 16px; }
.blog-single-content .blog-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}
.blog-single-content .blog-body a { color: var(--accent); }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.blog-tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.blog-tag:hover { background: var(--accent); color: #fff; }

/* Blog comments */
.comments-section { margin-top: 40px; }
.comments-section h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: #000;
  margin: 0 0 20px;
}
.comment-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.comment-item .comment-author {
  font-weight: 700;
  color: #000;
  font-size: 15px;
}
.comment-item .comment-date {
  font-size: 13px;
  color: var(--muted);
  margin-left: 12px;
}
.comment-item .comment-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}
.comment-reply {
  margin-left: 32px;
}

/* ===== Static page ===== */
.static-page-body {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.static-page-body h2, .static-page-body h3 {
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
}
.static-page-body a { color: var(--accent); }
.static-page-body img { max-width: 100%; border-radius: var(--radius); }

/* ===== Error pages ===== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 48px 20px;
}
.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.04em;
}
.error-page__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #000;
  margin: 16px 0 8px;
}
.error-page__desc {
  color: var(--muted);
  font-size: 16px;
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ===== Pagination ===== */
.mv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.mv-pagination a, .mv-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all .15s ease;
}
.mv-pagination a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mv-pagination .active span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mv-pagination .disabled span {
  opacity: .4;
  cursor: default;
}

/* ===== Captcha centering ===== */
.captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

/* ===== Demo credentials table (login page) ===== */
.demo-creds {
  margin-top: 24px;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.demo-creds th, .demo-creds td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: center;
}
.demo-creds th {
  background: var(--surface2);
  font-weight: 700;
  color: #000;
}
.demo-creds td { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .auth-card { padding: 28px 20px; margin: 0 16px; }
  .page-hero { padding: 36px 0 28px; }
  .page-content { padding: 32px 0 48px; }
}
