/* ===== Brand Ratio — Account/Auth surface (login / signup / account) =====
   Tông PA A: giấy ấm + ink Equinox + viền đen hairline + nút đen→mint sweep. Dùng token --brand-*.
   Scope: au-* (form auth chung) + acc-* (dashboard tài khoản). File ≤ 30KB (web-ui rule). */

.au-wrap {
  max-width: 1496px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: flex;
  justify-content: center;
}
.au-wrap--account { justify-content: stretch; }

/* ── Card auth (login/signup) ───────────────────────────────── */
.au-card {
  width: 100%;
  max-width: 460px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-lg);
  box-shadow: var(--brand-shadow-md);
  padding: 44px 40px;
}
.au-panel[hidden] { display: none; }

.au-head { text-align: center; margin-bottom: 28px; }
.au-title {
  font-family: var(--brand-font-display);
  font-weight: var(--brand-weight-display);
  font-size: 27px;
  line-height: 1.15;
  color: var(--brand-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.au-sub { color: var(--brand-muted); font-size: 14.5px; line-height: 1.5; margin: 0; }

/* ── OAuth buttons (2 nút Google/Facebook cùng 1 dòng) ───────── */
.au-oauth { display: flex; gap: 10px; margin-bottom: 20px; }
.au-oauth-txt { white-space: nowrap; }
.au-oauth-btn {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font: 600 14.5px/1 var(--brand-font);
  text-decoration: none;
}
/* Nút OAuth (viền trắng): hover .btn-sweep-out ở components.css; nhãn chứa chữ + logo nên xếp ngang */
.au-oauth-btn .btn-sweep-label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; }
.au-oauth-ico { width: 20px; height: 20px; display: inline-flex; }
.au-oauth-ico svg { width: 100%; height: 100%; }

.au-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--brand-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 4px 0 20px;
}
.au-divider::before, .au-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--brand-line); opacity: 0.25;
}

/* ── Form ───────────────────────────────────────────────────── */
.au-form { display: grid; gap: 16px; }
.au-field { display: grid; gap: 6px; }
.au-label { font-size: 13px; font-weight: 600; color: var(--brand-ink-2); }
.au-input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font: 400 15px/1 var(--brand-font);
  transition: border-color var(--brand-dur-fast) var(--brand-ease), box-shadow var(--brand-dur-fast) var(--brand-ease);
}
.au-input::placeholder { color: var(--brand-muted); opacity: 0.7; }
.au-input:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px rgba(40, 40, 47, 0.08); }
.au-hint { font-size: 12px; color: var(--brand-muted); margin: 2px 0 0; }

/* Honeypot — ẩn khỏi người dùng thật (bot điền sẽ bị reject) */
.au-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.au-row-between { display: flex; justify-content: flex-end; margin-top: -4px; }

/* ── Nút submit (đen → mint sweep, đồng bộ brand) ─────────────
   Dùng gradient-slide [mint|đen] 200% trượt background-position (KHÔNG dùng ::before phủ — ::before bị
   overflow cắt theo bo góc → lộ nền đen ở 4 góc; xem bài học pricing.css). nền lót mint + origin border-box
   + no-repeat → 4 góc bo tròn luôn phủ kín mint, không hở nền đen. height cố định 48px nên đổi border không
   gây layout shift. */
/* Nút gửi form (đen): hover .btn-sweep ở components.css; account.js đổi chữ trong nhãn .btn-sweep-label khi đang gửi */
.au-submit {
  position: relative;
  height: 48px;
  border-radius: var(--brand-radius);
  font: 650 15px/1 var(--brand-font);
  cursor: pointer;
  margin-top: 4px;
}
.au-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Links + foot ───────────────────────────────────────────── */
.au-link {
  background: none; border: none; padding: 0;
  color: var(--brand-ink); font: 600 13.5px/1 var(--brand-font);
  cursor: pointer; text-decoration: none; border-bottom: 1px solid currentColor;
}
.au-link:hover { color: var(--brand-muted); }
.au-resend { display: inline-block; margin: 4px auto 0; }
.au-foot { text-align: center; color: var(--brand-muted); font-size: 14px; margin: 22px 0 0; }

/* ── Alerts ─────────────────────────────────────────────────── */
.au-alert {
  border-radius: var(--brand-radius-sm); padding: 11px 14px; font-size: 13.5px; line-height: 1.45; margin-bottom: 16px;
}
.au-alert[hidden] { display: none; }
.au-alert--error { background: #fdecec; border: 1px solid #f0b4b4; color: #8a1c1c; }
.au-alert--ok { background: #eafaf3; border: 1px solid #a7e4cd; color: #14794f; }

/* ===== Dashboard tài khoản (/account) ======================== */
.acc-shell { width: 100%; max-width: 1100px; margin: 0 auto; }
.acc-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--brand-line);
}
.acc-hello {
  font-family: var(--brand-font-display); font-weight: var(--brand-weight-display);
  font-size: 30px; color: var(--brand-ink); margin: 0 0 6px; letter-spacing: -0.01em;
}
.acc-email { color: var(--brand-muted); font-size: 14.5px; margin: 0; }
.acc-logout { white-space: nowrap; }

.acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.acc-card {
  background: var(--brand-surface); border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-lg); padding: 28px 28px;
}
.acc-card-title {
  font-family: var(--brand-font-display); font-weight: 700; font-size: 18px;
  color: var(--brand-ink); margin: 0 0 16px;
}
.acc-card-desc { color: var(--brand-ink-2); font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; }
.acc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-ink); font: 650 14.5px/1 var(--brand-font);
  text-decoration: none; border-bottom: 1.5px solid var(--brand-ink); padding-bottom: 3px;
  transition: gap var(--brand-dur-fast) var(--brand-ease);
}
.acc-cta:hover { gap: 12px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .au-wrap { padding: 40px 16px 64px; }
  .au-card { padding: 32px 24px; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-top { flex-direction: column; }
}
