/* ==========================================================================
   Tarot With Vratika — sign in, create account, courses and payment pages
   (uses the colours and fonts of style.css)
   ========================================================================== */

/* ---------- Account card (login, sign up, forgot password) ---------- */
.acct-wrap {
  padding: clamp(40px, 7vw, 88px) 0;
  background:
    radial-gradient(1000px 420px at 50% -10%, rgba(180,138,60,.14), transparent 70%),
    var(--mist);
}
.acct-card {
  max-width: 480px; margin: 0 auto; background: var(--white); border-radius: 18px;
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); border-top: 3px solid var(--gold);
}
.acct-card--wide { max-width: 620px; }
.acct-card-head { text-align: center; margin-bottom: 24px; }
.acct-card-head img { width: 64px; height: auto; margin: 0 auto 12px; }
.acct-card-head h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin-bottom: 6px; }
.acct-card-head p { color: var(--muted); font-size: .95rem; margin: 0; }
.acct-form { display: grid; gap: 16px; }
.acct-form .form-grid { gap: 16px; }
.acct-form .btn { width: 100%; margin-top: 4px; }
.acct-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.acct-label-row a, .acct-foot a, .acct-link { color: var(--gold); font-weight: 600; font-size: .875rem; }
.acct-label-row a:hover, .acct-foot a:hover, .acct-link:hover { text-decoration: underline; }
.acct-foot { text-align: center; color: var(--muted); font-size: .9rem; margin: 22px 0 0; }
.acct-terms { text-align: center; color: var(--muted); font-size: .8125rem; margin: 2px 0 0; }
.acct-terms a { color: var(--ink); text-decoration: underline; }
.acct-linkbtn { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.acct-pw { position: relative; }
.acct-pw input { padding-right: 70px; }
.acct-pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--gold); font-weight: 700; font-size: .8rem;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.acct-pw-toggle:hover { background: var(--mist); }
.field small.hint a { color: var(--gold); font-weight: 600; }
[hidden] { display: none !important; }

/* Forgot password steps */
.fp-steps { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; font-size: .95rem; line-height: 1.55; color: var(--muted); }
.fp-steps li { counter-increment: s; position: relative; padding: 0 0 12px 38px; }
.fp-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--night); color: var(--gold-light); font-weight: 700; font-size: .78rem; display: grid; place-items: center;
}
.fp-steps b { color: var(--ink); }
.fp-sent { text-align: center; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.fp-sent b { color: var(--ink); word-break: break-all; }
.fp-back { margin: 20px 0 0; padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; transition: box-shadow .3s, border-color .3s; }
.fp-back h2 { font-size: 1.25rem; margin: 0 0 12px; }
.fp-back.is-back { border-style: solid; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(180,138,60,.18); }

/* ---------- Courses ---------- */
.page-hero--courses { background-image: url('../../images/Services_Page_.png'); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28,23,54,.06), 0 22px 44px -18px rgba(28,23,54,.3); }
.course-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--plum); display: block; overflow: hidden; }
.course-thumb img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.course-thumb .course-initials {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-light);
  font-family: var(--font-display); font-size: 2.6rem; letter-spacing: .06em;
  background: radial-gradient(circle at 30% 20%, var(--plum-2), var(--night));
}
.course-badge {
  position: absolute; z-index: 2; left: 14px; top: 14px; background: rgba(28,23,54,.85); color: var(--gold-light);
  font-size: .75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; letter-spacing: .03em;
}
.course-badge--owned { background: #1D5B2C; color: #fff; }
.course-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-body h2, .course-body h3 { font-size: 1.3rem; margin: 0; }
.course-body h2 a:hover, .course-body h3 a:hover { color: var(--gold); }
.course-body p { color: var(--muted); font-size: .94rem; margin: 0; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); }
.course-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.course-price { font-family: var(--font-display); font-size: 1.45rem; color: var(--night); line-height: 1.1; }
.course-price s { font-family: var(--font-body); font-size: .85rem; color: var(--muted); margin-left: 6px; }
.course-price small { display: block; font-family: var(--font-body); font-size: .75rem; color: var(--muted); }
.course-empty { text-align: center; max-width: 560px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 40px 28px; box-shadow: var(--shadow); }
.course-empty p { color: var(--muted); }

/* Course detail */
.course-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.course-detail .prose { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.course-detail .prose img { border-radius: 10px; }
.course-aside { position: sticky; top: calc(var(--header-h) + 24px); background: var(--white); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border-top: 3px solid var(--gold); }
.course-aside .course-thumb { aspect-ratio: 16 / 10; }
.course-aside-body { padding: 24px; display: grid; gap: 14px; }
.course-aside .course-price { font-size: 2rem; }
.course-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.course-aside li::before { content: "✦"; color: var(--gold); margin-right: 8px; }
.course-aside .btn { width: 100%; }
.course-aside .form-note { text-align: center; margin: 0; }
.course-syllabus { margin-top: 28px; }
.course-syllabus details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--mist); }
.course-syllabus summary { cursor: pointer; padding: 14px 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.course-syllabus summary span { color: var(--muted); font-weight: 500; font-size: .85rem; }
.course-syllabus ol { margin: 0; padding: 0 16px 14px 36px; color: var(--muted); font-size: .92rem; }

/* ---------- Payment result ---------- */
.pay-result { text-align: center; }
.pay-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; font-size: 2rem; color: #fff; }
.pay-icon--ok { background: #2E7D4F; }
.pay-icon--fail { background: #B3261E; }
.pay-icon--wait { background: var(--gold); }
.pay-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; text-align: left; font-size: .94rem; }
.pay-table th, .pay-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pay-table th { color: var(--muted); font-weight: 600; width: 42%; padding-right: 12px; }
.pay-actions { display: grid; gap: 10px; }
.pay-actions .btn { width: 100%; }
.pay-redirect { text-align: center; padding: 80px 20px; font-family: var(--font-body); color: var(--ink); }
.pay-spinner { width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; margin: 0 auto 18px; animation: pay-spin 0.9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .course-detail { grid-template-columns: 1fr; }
  .course-aside { position: static; order: -1; }
}
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } }
