/* Account pages (sign up, sign in, reset password, account). Uses the tokens from styles.css. */
[hidden] { display: none !important; }

.auth-tabs { margin: 0; }
.auth-tabs .tab { flex: 1 1 0; }

.form-msg { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.form-msg.is-ok { background: #E6F0E1; color: var(--brand-dark); }
.form-msg.is-error { background: #FDECEA; color: var(--warn); }
html[data-theme="dark"] .form-msg.is-ok { background: #1F2E23; }
html[data-theme="dark"] .form-msg.is-error { background: #3A1F1D; }

.code-input { font-size: 28px !important; letter-spacing: 0.3em; text-align: center; }

.text-btn {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--brand-dark);
  background: none; border: none; padding: 8px 0; cursor: pointer; text-decoration: underline;
  align-self: center; min-height: 44px;
}
.text-btn:disabled { opacity: .6; cursor: default; }
.btn:disabled { opacity: .6; cursor: default; }

.account-in { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.account-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
html[data-theme="dark"] .account-card { background: #141A16; }
.account-card h3 { margin: 0; font-size: 21px; font-weight: 600; }
.account-card form { display: flex; flex-direction: column; gap: 12px; }
.account-card input { width: 100%; }
.account-who { display: flex; flex-direction: column; gap: 2px; }
.account-who strong { font-family: 'Fraunces', Georgia, serif; font-weight: 650; font-variation-settings: 'SOFT' 100, 'opsz' 144; font-size: 30px; letter-spacing: -0.02em; }
.danger-card { border-color: #F2C4C0; }
.btn.danger { background: var(--warn); color: #fff; }
.btn.danger:hover { background: #8C1D17; }

.plan-badge {
  align-self: flex-start; background: #E6F0E1; color: var(--brand-dark);
  font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 980px;
}

/* Privacy policy and terms: plain document style */
.legal { max-width: 720px; padding-bottom: 72px; font-family: Inter, -apple-system, system-ui, sans-serif; }
.legal h1 { font-family: Inter, -apple-system, system-ui, sans-serif; font-weight: 700; font-size: clamp(28px, 4vw, 34px); line-height: 1.2; letter-spacing: -0.01em; margin: 8px 0 6px; }
.legal-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 4px -4px; padding: 0 4px; font-size: 15px; font-weight: 600; color: var(--brand-dark); text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
html[data-theme="dark"] .legal-back { color: #A6D99A; }
.legal .legal-date { margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.legal h2 { font-family: Inter, -apple-system, system-ui, sans-serif; font-weight: 650; font-size: 19px; letter-spacing: 0; margin: 32px 0 8px; }
.legal h3 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--ink); }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.legal p a, .legal li a { color: var(--brand-dark); font-weight: 500; }
html[data-theme="dark"] .legal p, html[data-theme="dark"] .legal li { color: #DADFDB; }
html[data-theme="dark"] .legal p a, html[data-theme="dark"] .legal li a { color: #A6D99A; }

/* Signed-in account page: the real-data version of the original design */
.acct .form-msg { margin-top: 2px; }
.acct-loading { padding: 40px 0; }
.danger-form { display: flex; flex-direction: column; gap: 12px; }
.danger-form input { width: 100%; }
.danger-form .btn { align-self: flex-start; }
.soon-note { margin: 0; font-size: 14px; }
#account{display:flex;flex-direction:column;gap:28px}

/* Contact page */
.contact-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; }
.contact h2 { margin: 24px 0 10px; }
.contact h2:first-of-type { margin-top: 4px; }
#socials { scroll-margin-top: 80px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.contact-card:hover { border-color: var(--brand); background: #F7FAF5; }
.contact-ic { width: 46px; height: 46px; border-radius: 12px; background: #E6F0E1; color: var(--brand-dark); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-ic.ig { background: #FBE7F0; color: #B4245E; }
.contact-txt { display: flex; flex-direction: column; min-width: 0; }
.contact-k { font-size: 13px; color: var(--muted); }
.contact-v { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
html[data-theme="dark"] .contact-card { background: #141A16; border-color: #2C3530; color: #ECEFEA; }
html[data-theme="dark"] .contact-card:hover { background: #1A221D; border-color: #3F8A55; }
html[data-theme="dark"] .contact-ic { background: #1F3326; color: #A6D99A; }
html[data-theme="dark"] .contact-ic.ig { background: #3A1E2B; color: #F3A3C4; }
