/* ==========================================================================
   my-account/portal.css
   Shared design system for the Shubhra Software customer portal
   (login/signup, dashboard, my orders, profile).
   Brand red kept as-is (#ff432e); everything else is new.
   ========================================================================== */

:root {
  --portal-red: #ff432e;
  --portal-red-dark: #d92e1b;
  --portal-ink: #1c1c1e;
  --portal-muted: #6b7280;
  --portal-bg: #f7f7f8;
  --portal-card: #ffffff;
  --portal-border: #e6e6e9;
  --portal-radius: 10px;
  --portal-shadow: 0 1px 2px rgba(16, 16, 16, 0.04), 0 8px 24px rgba(16, 16, 16, 0.04);
}

.portal-page {
  background: var(--portal-bg);
  color: var(--portal-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------- Shell / layout ---------- */

.portal-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

.portal-welcome {
  margin: 28px 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.portal-welcome span {
  color: var(--portal-muted);
  font-weight: 400;
}

/* ---------- Tab navigation (Dashboard / My Order / Profile) ---------- */

.portal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--portal-border);
  margin: 18px 0 28px;
  overflow-x: auto;
}

.portal-tabs a {
  display: inline-block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--portal-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.portal-tabs a:hover {
  color: var(--portal-ink);
}

.portal-tabs a.active {
  color: var(--portal-red);
  border-bottom-color: var(--portal-red);
}

/* ---------- Cards ---------- */

.portal-card {
  background: var(--portal-card);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow);
  padding: 28px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 800px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.portal-card h2 {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 600;
}

/* ---------- Forms ---------- */

.portal-field {
  margin-bottom: 16px;
}

.portal-field label {
  display: block;
  font-size: 13px;
  color: var(--portal-muted);
  margin-bottom: 6px;
}

.portal-field input[type="text"],
.portal-field input[type="email"],
.portal-field input[type="password"],
.portal-field input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
}

.portal-field input:focus {
  outline: none;
  border-color: var(--portal-red);
  box-shadow: 0 0 0 3px rgba(255, 67, 46, 0.12);
}

.portal-field input[readonly] {
  background: var(--portal-bg);
  color: var(--portal-muted);
}

.portal-field .portal-hint {
  display: block;
  font-size: 12px;
  color: var(--portal-muted);
  margin-top: 6px;
}

.portal-plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--portal-bg);
  border: 1px solid var(--portal-border);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Buttons ---------- */

.portal-btn {
  display: inline-block;
  padding: 11px 24px;
  border: none;
  border-radius: 8px;
  background: var(--portal-red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.portal-btn:hover {
  background: var(--portal-red-dark);
}

.portal-btn-block {
  display: block;
  width: 100%;
}

/* ---------- Tables ---------- */

.portal-table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.portal-table th {
  text-align: left;
  background: var(--portal-ink);
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
  white-space: nowrap;
}

.portal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--portal-border);
  white-space: nowrap;
}

.portal-table tr:nth-child(even) td {
  background: #fbfbfc;
}

.portal-banner {
  background: #fff7ed;
  border: 1px solid #fde3c4;
  color: #9a5b12;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
}

/* ---------- Auth (login / signup) ---------- */

.portal-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.portal-auth-banner {
  max-width: 460px;
  margin: 0 auto 24px;
  text-align: center;
}

.portal-auth-banner .product {
  font-size: 15px;
  font-weight: 600;
  color: var(--portal-ink);
}

.portal-auth-banner .price {
  font-size: 13px;
  color: var(--portal-muted);
  margin-top: 2px;
}

.portal-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  width: 100%;
}

@media (max-width: 720px) {
  .portal-auth-grid {
    grid-template-columns: 1fr;
  }
}

.portal-auth-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.portal-auth-card p.sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--portal-muted);
}

.portal-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.portal-captcha img {
  border-radius: 6px;
  border: 1px solid var(--portal-border);
}

/* ---------- Profile ---------- */

.portal-profile-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--portal-border);
  font-size: 14px;
}

.portal-profile-row:last-child {
  border-bottom: none;
}

.portal-profile-row .label {
  color: var(--portal-muted);
}

.portal-profile-row .value {
  font-weight: 500;
}