/* Account pages: login.html (sign in / your plan) and codes.html (the owner's community codes).
   Loaded after css/landing.css, which supplies the colours, header, footer and buttons. */
:root {
  --plan-free: #2a303d; --plan-free-text: #d5dae3; --plan-free-line: #4a5263;
  --plan-pro: #f5b301;
  --plan-community: #2dd4bf;   /* same value as --community in css/app.css */
}
[hidden] { display: none !important; }
body.acct-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.acct-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: 28px; padding-bottom: 48px; }

/* Slim strip shown only in preview mode (your own computer, accounts not connected) */
.preview-bar { padding: 7px 14px; text-align: center; font-size: 13px; line-height: 1.35; font-weight: 600; color: #ffd66b; background: rgba(245, 179, 1, .12); border-bottom: 1px solid rgba(245, 179, 1, .4); }

.acct-card { width: 100%; max-width: 440px; padding: 24px 18px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.acct-card h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.015em; }
.acct-card .eyebrow + h1 { margin-top: 8px; }
.acct-card p { color: var(--soft); }
.acct-card .sub { margin-top: 10px; }
.acct-card form, .acct-card .stack { display: flex; flex-direction: column; }
.acct-card label { display: block; margin: 20px 0 8px; font-size: 14px; font-weight: 600; color: var(--soft); }
.acct-card input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #39404f;
  background: var(--panel2); color: var(--text); font: inherit; font-size: 16px; outline: none;
}
.acct-card input::placeholder { color: #6b7385; }
.acct-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 179, 1, .18); }
.acct-card button { font: inherit; cursor: pointer; }
.acct-card .btn { margin-top: 12px; font-size: 16px; font-weight: 700; }
.acct-card .btn[disabled] { opacity: .6; cursor: default; }
.acct-card .note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.acct-card .msg { min-height: 20px; margin-top: 10px; font-size: 14px; color: #ffd66b; }
.acct-card .msg:empty { min-height: 0; margin-top: 0; }
.acct-card .msg.good { color: var(--plan-community); }
.text-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; border: 0; background: none; color: var(--soft); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--accent); }
.loading { color: var(--muted); }

/* Email sent: the 6-digit box */
.digits { text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 26px !important; font-weight: 700; letter-spacing: .32em; padding-left: .32em !important; font-variant-numeric: tabular-nums; }
.sent-to { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }

/* Signed in: email, big plan badge, what the plan includes */
.acct-email { margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--text) !important; overflow-wrap: anywhere; }
.plan-hero { margin: 18px 0 8px; padding: 18px 16px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.plan-hero small { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan-badge { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 12px; border: 1px solid transparent; font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; }
.plan-badge.p-free { background: var(--plan-free); border-color: var(--plan-free-line); color: var(--plan-free-text); }
.plan-badge.p-pro { background: var(--plan-pro); color: #0c0e12; }
.plan-badge.p-community { background: var(--plan-community); color: #0c0e12; }
.plan-hero.p-pro { border-color: rgba(245, 179, 1, .45); background: linear-gradient(180deg, rgba(245, 179, 1, .08), rgba(245, 179, 1, 0) 70%), var(--panel2); }
.plan-hero.p-community { border-color: rgba(45, 212, 191, .45); background: linear-gradient(180deg, rgba(45, 212, 191, .08), rgba(45, 212, 191, 0) 70%), var(--panel2); }
.plan-hero p { margin-top: 12px; font-size: 15px; }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(245, 179, 1, .10); }
.code-form label { margin-top: 22px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { margin-top: 0; flex: none; }
.acct-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.acct-foot a { font-size: 14.5px; font-weight: 600; }

/* codes.html */
.code-big { display: flex; justify-content: center; gap: .38em; margin: 18px 0 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 56px; font-size: clamp(46px, 16vw, 72px); font-weight: 800; line-height: 1; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: #fff; user-select: all; -webkit-user-select: all; }
.code-big.used { color: #6b7385; text-decoration: line-through; text-decoration-thickness: 3px; }
.code-bar { height: 4px; border-radius: 4px; background: var(--panel2); overflow: hidden; }
.code-bar i { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--accent); transition: width .25s linear; }
.code-left { margin-top: 10px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--soft); }
.code-status { margin-top: 12px; padding: 10px 12px; border-radius: 10px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--panel2); border: 1px solid var(--line); color: var(--soft); }
.code-status.used { background: rgba(245, 179, 1, .10); border-color: rgba(245, 179, 1, .4); color: #ffd66b; }
.code-rules { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.code-rules li { position: relative; padding: 4px 0 4px 18px; font-size: 14.5px; color: var(--soft); }
.code-rules li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (min-width: 640px) {
  .acct-main { padding-top: 56px; }
  .acct-card { padding: 32px 30px 26px; }
}
@media (prefers-reduced-motion: reduce) { .code-bar i { transition: none; } }
