/* ============================================================
   TA-NC — Member accounts (login, register, reset, dashboard)
   Extends styles.css; keeps the same green/cream/gold language.
   ============================================================ */

[hidden] { display: none !important; }

.account-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(201, 162, 39, 0.16), transparent 60%),
    var(--cream);
}

.account-header .brand-logo { height: 38px; }

.account-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.82;
}
.account-back:hover { text-decoration: none; opacity: 1; }

.account-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(30px, 5vw, 64px) 0;
}

.account-notice {
  border: 1px solid #e3c37a;
  background: #fbf4df;
  color: #5a4508;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.account-notice code {
  font-size: 12.5px;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- Auth shell ---------- */

.auth-shell {
  width: min(1040px, 100% - 40px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 51, 34, 0.14);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 4vw, 46px);
  color: var(--cream);
  background:
    radial-gradient(640px 380px at 100% 0%, rgba(201, 162, 39, 0.24), transparent 55%),
    linear-gradient(160deg, var(--green-800), var(--green-900));
}

.auth-party {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-party img {
  height: 38px;
  width: auto;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(224, 197, 101, 0.45);
}
.auth-party span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.auth-headline {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.auth-headline span { color: var(--gold-soft); }

.auth-lead {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.86;
}

.auth-points {
  margin-top: auto;
  display: grid;
  gap: 11px;
  font-size: 14px;
  line-height: 1.5;
}
.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-points li::before {
  content: "✓";
  color: var(--gold-soft);
  font-weight: 800;
  line-height: 1.4;
}

.auth-panel { padding: clamp(28px, 4vw, 46px); background: var(--white); }

.auth-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-700);
}

.auth-panel h1,
.auth-panel h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1.18;
  margin: 6px 0 6px;
  color: var(--ink);
}

.auth-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Light form styling inside auth panels and dashboard panels */

.auth-panel .field,
.panel .field { margin-bottom: 16px; }

.auth-panel .field label,
.panel .field label {
  color: var(--ink);
  opacity: 1;
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.auth-panel .field input[type="text"],
.auth-panel .field input[type="tel"],
.auth-panel .field input[type="email"],
.auth-panel .field input[type="password"],
.auth-panel .field select,
.panel .field input[type="text"],
.panel .field input[type="tel"],
.panel .field input[type="email"],
.panel .field input[type="password"],
.panel .field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.auth-panel .field select,
.panel .field select { appearance: none; }

.auth-panel .field input:focus,
.auth-panel .field select:focus,
.panel .field input:focus,
.panel .field select:focus {
  outline: none;
  border-color: var(--green-700);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(11, 74, 47, 0.1);
}

.auth-panel .field input[readonly],
.panel .field input[readonly] {
  background: var(--cream-dark);
  color: var(--muted);
  cursor: default;
}

.auth-panel .field.has-error input,
.auth-panel .field.has-error select,
.panel .field.has-error input,
.panel .field.has-error select { border-color: #b3402e; }

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 4px 0 18px;
  cursor: pointer;
}
.auth-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--green-700);
  flex-shrink: 0;
}

.auth-panel .btn-block { width: 100%; }

.auth-panel .form-status { margin: 2px 0 14px; font-size: 14px; }
.auth-panel .form-status.is-success { color: var(--green-700); }
.auth-panel .form-status.is-error { color: #b3402e; }

.panel .form-status { font-size: 14px; }
.panel .form-status.is-success { color: var(--green-700); }
.panel .form-status.is-error { color: #b3402e; }

.auth-alt {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.auth-alt + .auth-alt { margin-top: 8px; }
.auth-alt a { font-weight: 700; }

.auth-footnote {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.account-footer {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Dashboard ---------- */

.dash-main { flex: none; padding: clamp(28px, 4vw, 52px) 0 64px; }

.dash-content.is-loading { opacity: 0.55; pointer-events: none; }

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dash-head h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.16;
  margin-top: 4px;
}
.dash-head .dash-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

.dash-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.id-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 24px;
  color: var(--cream);
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(201, 162, 39, 0.26), transparent 55%),
    linear-gradient(160deg, var(--green-800), var(--green-900));
  box-shadow: 0 18px 40px rgba(7, 51, 34, 0.22);
}
.id-card::after {
  content: "TA‑NC";
  position: absolute;
  right: -14px;
  bottom: -34px;
  font-size: 104px;
  font-weight: 800;
  letter-spacing: -0.07em;
  color: rgba(224, 197, 101, 0.09);
  pointer-events: none;
}

.id-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.id-card-top img {
  height: 34px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(224, 197, 101, 0.4);
}
.id-card-top .id-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.id-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--green-900);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.id-name {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}
.id-role {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.id-meta {
  display: grid;
  gap: 9px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.id-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(247, 245, 239, 0.14);
  padding-top: 8px;
}
.id-meta .id-key { opacity: 0.62; }
.id-meta .id-value { font-weight: 700; text-align: right; }

.id-note {
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.55;
  opacity: 0.58;
  position: relative;
  z-index: 1;
}

.dash-stack { display: grid; gap: 24px; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
}
.panel h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 4px;
}
.panel .panel-sub {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.panel .btn { padding: 11px 20px; font-size: 13.5px; }

/* ---------- Events ---------- */

.events-list { display: grid; gap: 12px; }

.event-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfcf9;
}

.event-date {
  background: var(--green-800);
  color: var(--cream);
  border-radius: 10px;
  text-align: center;
  padding: 8px 4px;
}
.event-date .d { display: block; font-size: 19px; font-weight: 800; line-height: 1; }
.event-date .m {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 3px;
}

.event-title { font-size: 14.5px; font-weight: 800; line-height: 1.35; margin-bottom: 2px; }
.event-meta { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.btn-rsvp {
  padding: 8px 13px;
  border: 1px solid var(--green-800);
  border-radius: 8px;
  background: transparent;
  color: var(--green-800);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-rsvp:hover { background: rgba(11, 74, 47, 0.08); }
.btn-rsvp.is-going { background: var(--green-800); color: var(--cream); }
.btn-rsvp:disabled { opacity: 0.6; cursor: default; }

.empty-state {
  color: var(--muted);
  font-size: 13.5px;
  padding: 10px 0 4px;
}

.auth-referral {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-800);
  background: rgba(11, 74, 47, 0.08);
  border: 1px solid rgba(11, 74, 47, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

/* ---------- Points, tasks and referrals ---------- */

.points-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--green-900);
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.points-pill strong {
  font-size: 19px;
  letter-spacing: 0;
  color: var(--cream);
}

.dash-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.dash-side > * { min-width: 0; }

.card-actions .btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 13.5px;
}
.card-actions .btn[disabled] { opacity: 0.55; cursor: default; }
.card-hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--cream-dark);
  overflow: hidden;
  margin: 4px 0 6px;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
  transition: width 0.4s var(--ease);
}
.progress-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.task {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.task-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-dark);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 800;
}
.task.is-done .task-icon {
  background: var(--green-800);
  color: var(--gold-soft);
}
.task-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
}
.task-state {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6d1f;
  background: #fbf4df;
  border: 1px solid #e3c37a;
  border-radius: 999px;
  padding: 2px 9px;
}
.task-state.is-ok {
  color: var(--green-700);
  background: rgba(11, 74, 47, 0.08);
  border-color: rgba(11, 74, 47, 0.25);
}
.task-sub {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.task-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.task-actions .btn {
  padding: 9px 16px;
  font-size: 13px;
}
.task .form-status { margin: 8px 0 0; }
.task .panel-sub { margin-bottom: 0; }

.verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.verify-row input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.verify-row input:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(11, 74, 47, 0.1);
}

.file-input {
  max-width: 100%;
  font-size: 12.5px;
  color: var(--muted);
}
.file-input::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-800);
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.switch {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  cursor: pointer;
}
.switch input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--green-700);
  flex-shrink: 0;
}
.switch input:disabled + span { color: var(--muted); }

.btn-outline {
  padding: 9px 14px;
  border: 1px solid var(--green-800);
  border-radius: 8px;
  background: transparent;
  color: var(--green-800);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-outline:hover { background: rgba(11, 74, 47, 0.08); }

.ref-box {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.ref-box code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 11px 12px;
  font-size: 12.5px;
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ref-meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.ref-panel .form-status { margin: 6px 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { gap: 14px; }
  .auth-points { margin-top: 8px; }
  .auth-headline { font-size: clamp(1.6rem, 5vw, 2rem); }
  .auth-lead { font-size: 14.5px; }
  .dash-grid { grid-template-columns: 1fr; }
  .id-card { max-width: 460px; }
}

@media (max-width: 560px) {
  .account-actions { gap: 10px; }
  .account-back span:last-child { display: none; }
  .auth-shell { width: min(1040px, calc(100% - 28px)); border-radius: 12px; }
  .auth-intro { padding: 24px; }
  .auth-panel { padding: 24px; }
  .event-item { grid-template-columns: 52px minmax(0, 1fr); }
  .event-item .btn-rsvp { grid-column: 2; justify-self: start; }
  .auth-panel .form-row,
  .panel .form-row { grid-template-columns: 1fr; gap: 0; }
  .points-pill { padding: 8px 14px; }
  .points-pill strong { font-size: 16px; }
  .task { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .task-icon { width: 28px; height: 28px; font-size: 12.5px; }
  .ref-box { flex-wrap: wrap; }
  .ref-box code { flex-basis: 100%; }
}
