/* Accounts — only what the marketing site's stylesheet doesn't already provide.
 *
 * Loads AFTER /shared/assets/css/styles.css. Tokens, .btn, .lead-shell,
 * .lead-copy, .lead-form-panel, .panel-brand, .stats-grid, .eq-modal-*,
 * .form-grid/.span-2 and the input styling all come from there — this file
 * must never redefine them.
 */

/* An explicit `display` in a rule beats the `hidden` attribute, so anything
   toggled via `hidden` here would stay visible without this. (The site's own
   `.eq-modal-overlay[hidden]` rule exists for the same reason.) */
[hidden] { display: none !important; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.acct-back {
  margin-left: auto;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.acct-back:hover { color: var(--accent); }

/* ── Session check ──────────────────────────────────────────────────────── */
.acct-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 1rem;
  color: var(--text-soft);
}
.acct-spinner {
  width: 2rem; height: 2rem;
  border: 3px solid rgba(255, 138, 0, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: acct-spin 0.7s linear infinite;
}
@keyframes acct-spin { to { transform: rotate(360deg); } }

/* ── Left column ────────────────────────────────────────────────────────── */
/* What this one sign-in actually unlocks — real products, not a stats pitch. */
.acct-products {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}
.acct-product-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}
.acct-product-card h3 {
  margin: 0.6rem 0 0.3rem;
  font-size: 1.05rem;
}
.acct-product-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}
.acct-badge { background: #fff7ed; color: var(--accent-strong); }

/* Same trust row as the courses catalog hero (.trust-row lives in
   courses.css, which this page doesn't load) — repeated here rather than
   promoted to the shared stylesheet for six lines of CSS. */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}
.acct-trust-row { margin-top: 0.9rem; }

/* .stats-grid is 3-up on the homepage; one column reads better beside a form. */
.acct-proof { grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin-top: 1.5rem; }
.acct-proof article { padding: 1rem; text-align: left; }

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.acct-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.25rem;
  margin-bottom: 1.75rem;
}
.acct-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.acct-tab.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Panels ─────────────────────────────────────────────────────────────── */
.acct-panel { display: none; }
.acct-panel.is-active { display: block; }

.acct-intro {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.acct-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.1rem; }
.acct-field label { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.acct-hint { font-weight: 400; font-size: 0.78rem; color: var(--text-soft); }
.acct-req { color: var(--accent-2); }

.acct-submit { width: 100%; margin-top: 0.5rem; }
.acct-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.acct-link-btn {
  display: block;
  margin: -0.35rem 0 1.25rem auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.acct-link-btn:hover { color: var(--accent); }
.acct-link-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.acct-link-btn:disabled:hover { color: var(--text-soft); }

.acct-foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.acct-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.acct-foot a:hover { text-decoration: underline; }

/* ── Google ─────────────────────────────────────────────────────────────── */
.acct-google { display: flex; justify-content: center; min-height: 44px; }
.acct-sep {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.acct-sep::before, .acct-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.acct-alert {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.acct-alert.show { display: block; }
.acct-alert-error {
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
}
.acct-alert-ok {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

/* ── 5paisa offer banner ────────────────────────────────────────────────── */
.acct-offer {
  background: #fff7ed;
  border: 1px solid rgba(255, 138, 0, 0.3);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-soft);
}
.acct-offer strong {
  display: block;
  color: var(--accent-strong);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

/* ── Profile-completion modal ───────────────────────────────────────────── */
/* Required, so there's deliberately no close affordance. */
.eq-modal-overlay[hidden] { display: none; }
.acct-profile-box { text-align: left; max-width: 520px; }
.acct-profile-box .eq-modal-title,
.acct-profile-box .eq-modal-message { text-align: center; }
.acct-profile-box::before { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }

.acct-profile-grid { margin: 1.75rem 0 0.5rem; gap: 1rem; }
.acct-profile-grid label {
  display: flex; flex-direction: column; gap: 0.5rem;
  font-weight: 700; font-size: 0.9rem; color: var(--text);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* .lead-shell already collapses to one column here; this content becomes
     decoration below the form, so drop it to keep the form above the fold. */
  .acct-products, .acct-proof { display: none; }
}
@media (max-width: 600px) {
  .acct-profile-grid { grid-template-columns: 1fr; }
  .acct-profile-grid .span-2 { grid-column: auto; }
}
