/* Portal styles — extends theme.css */

/* AUTH PAGES */
.auth-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(45,74,62,0.06);
}

.auth-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* FORMS */
.auth-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.form-input, .form-select, .form-textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.15s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-primary {
  background: var(--forest);
  color: #F8F5F0;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  background: var(--forest);
  color: #F8F5F0;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}
.btn-block { width: 100%; }

.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.auth-footer-text a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* PORTAL LAYOUT */
.portal-wrap { max-width: 900px; }

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.portal-greeting {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 4px;
}

.portal-sub {
  font-size: 15px;
  color: var(--muted);
}

.portal-actions { display: flex; gap: 12px; align-items: center; }

.portal-section { margin-bottom: 48px; }

/* VISIT CARDS */
.visit-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.visit-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}
.visit-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--forest);
  color: #F8F5F0;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 64px;
}
.visit-day { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 800; line-height: 1; }
.visit-month { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.75; }
.visit-type { font-size: 16px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.visit-info { flex: 1; }
.status-pending { font-size: 13px; color: var(--accent); font-weight: 600; }
.status-confirmed { font-size: 13px; color: var(--forest); font-weight: 600; }
.status-completed { font-size: 13px; color: var(--muted); }

/* REPORTS */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.report-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.report-photos { display: flex; gap: 4px; background: var(--bg); }
.report-thumb { width: 50%; height: 140px; object-fit: cover; }
.report-no-photo { width: 100%; height: 140px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.report-info { padding: 16px; }
.report-service { font-weight: 600; margin-bottom: 4px; }
.report-date { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* BOOKING FORM */
.book-form { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.book-summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(45,74,62,0.05);
  border: 1px solid rgba(45,74,62,0.1);
  border-radius: 10px;
  padding: 20px;
}
.summary-icon { font-size: 24px; }
.book-summary strong { font-size: 15px; display: block; margin-bottom: 4px; }
.book-summary p { font-size: 14px; color: var(--muted); margin: 0; }

/* CONFIRMATION */
.confirmation-box {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 40px;
}
.confirmation-icon { font-size: 64px; margin-bottom: 24px; }
.confirmation-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 16px;
}
.confirmation-sub { font-size: 17px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.confirmation-sms { font-size: 14px; color: var(--forest); font-weight: 500; margin-bottom: 40px; }
.confirmation-actions { display: flex; gap: 16px; justify-content: center; }

/* REPORT DETAIL */
.report-detail { display: flex; flex-direction: column; gap: 32px; }
.report-notes { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.report-notes p { font-size: 16px; line-height: 1.65; color: var(--fg); margin-top: 8px; }
.photo-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-col { display: flex; flex-direction: column; gap: 8px; }
.photo-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.report-full-img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state p { font-size: 16px; color: var(--muted); margin-bottom: 20px; }

/* NAV */
.nav-portal-links { display: flex; gap: 16px; margin-left: auto; }
.nav-link { font-size: 14px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-link:hover { color: var(--forest); }

/* MOBILE */
@media (max-width: 768px) {
  .auth-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .portal-header { flex-direction: column; }
  .portal-actions { flex-direction: column; width: 100%; }
  .photo-comparison { grid-template-columns: 1fr; }
  .confirmation-box { padding: 40px 24px; }
  .confirmation-actions { flex-direction: column; }
  .nav-actions { gap: 8px; }
}

/* LANDING NAV ACTIONS */
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-signin { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 16px; }
.nav-signin:hover { color: var(--forest); }
.nav-cta { font-size: 14px; font-weight: 600; color: #F8F5F0; background: var(--forest); text-decoration: none; padding: 8px 20px; border-radius: 8px; }
.nav-cta:hover { background: var(--forest-light); }

/* MEMBERSHIP CTA */
.membership-cta { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; }
.membership-cta .btn-primary { background: var(--accent); padding: 16px 40px; font-size: 16px; }
.membership-cta .btn-primary:hover { opacity: 0.9; }
.membership-cta-note { font-size: 14px; color: var(--muted); }