/* ============================================================
   TASKBOOK_auth §5 — auth UI styles (login / account / verify / reset)
   APPEND-ONLY new file. Reuses the existing design tokens from style.css
   (:root --bg #FBF8F1, --sage #8FB59A, --clay #D9A27A, --radius 20px).
   External file on purpose: the Pages _headers CSP is style-src 'self',
   so no inline <style> is allowed.
   ============================================================ */

.page.auth{gap:16px}
.page.auth .eyebrow{margin:0}

/* ---------- tabs ---------- */
.tabs{display:inline-flex;background:var(--card);border:1px solid #e3e8dc;border-radius:999px;padding:3px;box-shadow:var(--shadow);gap:2px}
.tab{border:0;background:transparent;color:var(--ink-soft);font:inherit;font-weight:700;font-size:15px;line-height:1;padding:10px 20px;border-radius:999px;cursor:pointer;min-height:40px}
.tab[aria-selected=true]{background:var(--sage);color:var(--ink)}
.tab:focus-visible{outline:3px solid var(--clay);outline-offset:2px}

/* ---------- card + fields ---------- */
.auth-card{width:100%;background:var(--card);border:1px solid #ece7da;border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 20px;display:flex;flex-direction:column;gap:14px;align-items:stretch}
.auth-card h2{font-size:19px;line-height:1.3}
.auth-field{display:flex;flex-direction:column;gap:5px;font-size:15px;color:var(--ink-soft);width:100%}
.auth-field>span{font-weight:600;color:var(--ink)}
.auth-field input{font:inherit;font-size:16px;color:var(--ink);padding:11px 14px;border:1.5px solid #d9dfd0;border-radius:14px;background:#fff;width:100%;min-width:0}
.auth-field input:focus-visible{outline:3px solid var(--clay);outline-offset:1px}
.auth-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.55;color:var(--ink-soft)}
.auth-check input{margin:3px 0 0;width:18px;height:18px;flex:none;accent-color:var(--sage-deep)}
.auth-msg{min-height:1.4em;font-size:14px;color:var(--ink-soft);margin:0}
.auth-msg.err{color:#B4552F;font-weight:600}
.auth-msg.ok{color:var(--sage-deep);font-weight:600}
.auth-card .btn{align-self:flex-start}
@media (max-width:520px){.auth-card .btn{width:100%}}

/* ---------- divider + social row ---------- */
.social-wrap{width:100%;display:flex;flex-direction:column;gap:12px}
.or{display:flex;align-items:center;gap:12px;margin:2px 0;font-size:13px;letter-spacing:.04em;color:var(--ink-soft);text-transform:none}
.or::before,.or::after{content:"";flex:1 1 auto;height:1px;background:#e3e8dc}
.social-row{display:flex;flex-direction:column;gap:10px;width:100%}
.social-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:10px 18px;border-radius:16px;
  font:inherit;font-size:16px;font-weight:700;text-decoration:none;cursor:pointer;border:1.5px solid #d9dfd0;background:#fff;color:var(--ink);
  transition:transform .15s,filter .15s}
.social-btn:hover{transform:translateY(-1px);filter:brightness(1.04)}
.social-btn svg{flex:none}
.social-btn.s-x{background:#000;color:#fff;border-color:#000}
.social-btn.s-tiktok{background:#000;color:#fff;border-color:#000}
.social-btn.s-instagram{background:linear-gradient(45deg,#F58529 0%,#DD2A7B 48%,#8134AF 72%,#515BD4 100%);color:#fff;border-color:transparent}
.social-btn.s-google{background:#fff;color:#3F3A34;border-color:#d9dfd0}
.social-btn:focus-visible{outline:3px solid var(--clay);outline-offset:2px}
.ig-note{margin:0}

/* ---------- account ---------- */
.account-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.account-line strong{font-size:18px;overflow-wrap:anywhere}
.badge-state{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 12px;font-size:13.5px;font-weight:700}
.badge-state.ok{background:var(--bg-soft);border:1px solid var(--sage);color:var(--sage-deep)}
.badge-state.warn{background:#FBF0E6;border:1px solid var(--clay);color:#A2622F}
.methods{display:flex;flex-direction:column;gap:8px;width:100%}
.method{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e6e1d3;border-radius:14px;padding:10px 14px}
.method .method-name{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--ink);flex:1 1 auto;min-width:0}
.method .mm{color:var(--ink-soft);font-size:14px;overflow-wrap:anywhere}
.method .state{font-size:13px;font-weight:700;border-radius:999px;padding:2px 10px}
.method .state.ok{background:var(--bg-soft);color:var(--sage-deep);border:1px solid var(--sage)}
.method .state.off{background:#F4F1EA;color:var(--ink-soft);border:1px solid #e3e8dc}
.mico{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;flex:none;background:#fff;border:1px solid #e3e8dc}
.mico.s-x,.mico.s-tiktok{background:#000;border-color:#000}
.mico.s-instagram{background:linear-gradient(45deg,#F58529 0%,#DD2A7B 48%,#8134AF 72%,#515BD4 100%);border-color:transparent}
.btn.mini{min-height:34px;padding:4px 14px;font-size:14px}

/* cb: keep tap targets generous on small screens (site-wide pattern) */
@media (max-width:400px){
  .tab{padding:10px 14px;font-size:14px}
  .social-btn{font-size:15px}
}

.profile-identity{display:flex;align-items:center;gap:16px;min-width:0}.profile-identity>div{min-width:0}.profile-avatar{display:grid;place-items:center;flex:0 0 64px;height:64px;border-radius:50%;background:var(--sage);font-size:30px;font-weight:700}.profile-plan{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:16px;border:1px solid var(--sage);border-radius:16px;background:var(--bg-soft)}.profile-plan>p{flex:1 0 100%;margin:0}.auth-msg:empty{display:none}.profile-identity .account-line{margin:6px 0}

.avatar-options{display:flex;flex-wrap:wrap;gap:12px}.avatar-choice{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;position:relative;cursor:pointer}.avatar-choice img,.profile-avatar img{height:46px;width:auto}.avatar-choice input{position:absolute;bottom:0;inset-inline-end:0;accent-color:var(--sage-deep)}.avatar-choice:has(input:checked){outline:3px solid var(--sage-deep)}#profile-form{display:flex;flex-direction:column;gap:16px}#profile-form fieldset{min-width:0;border:1px solid var(--sage);border-radius:14px;padding:12px}.password-toggle{align-self:flex-start}.bunny-1{background:#dfeedd}.bunny-2{background:#f2dbcd}.bunny-3{background:#d9e8f4}.bunny-4{background:#ede0f4}.bunny-5{background:#faebbd}.bunny-6{background:#cfece8}.bunny-7{background:#f5dce7}.bunny-8{background:#e7e3d8}

/* Design A: identity, membership, orders and login methods. */
body[data-page="account"] a,body[data-page="account"] button,body[data-page="account"] input,body[data-page="account"] select,body[data-page="account"] summary{min-height:44px;min-width:44px}
body[data-page="account"] .top a,body[data-page="account"] .top summary,body[data-page="account"] .foot-links a{display:inline-flex;align-items:center;justify-content:center}
body[data-page="account"] .foot-links a{padding:6px}
body[data-page="account"] .top #lang-select{min-height:44px}
.profile-a .profile-entry button{flex-shrink:0;white-space:nowrap;min-width:100px;min-height:44px}
body[data-page="account"] .wrap{max-width:1120px}
.profile-a{display:block!important;padding-top:36px}
.profile-a h1{font-size:42px;line-height:1.15;letter-spacing:-.03em;margin:6px 0 10px}
.profile-a .eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--ink-soft)}
.profile-a .profile-identity{gap:20px;margin-bottom:30px}
.profile-a .profile-avatar{flex:0 0 88px;height:88px;font-size:38px}
.profile-email{font-weight:650;overflow-wrap:anywhere}
.profile-verify{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}
.profile-grid{display:grid;align-items:start;grid-template-columns:1.1fr 1fr;gap:24px}
.profile-panel{min-width:0;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px}
.profile-panel h2{font-size:23px;line-height:1.3;margin-bottom:20px}
.profile-membership{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px;background:var(--bg-soft);border:1px solid var(--sage);padding:30px 36px}
.profile-membership h2{font-size:30px;margin:12px 0 8px}
.profile-alternative{grid-column:1/-1;padding-top:16px;border-top:1px dashed var(--sage)}
.profile-alternative a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline}
.profile-order{padding:16px 0;border-top:1px solid var(--bg-soft);border-bottom:1px solid var(--bg-soft)}
.profile-a #redeem-form{margin-top:20px}.profile-a #redeem-form label{display:block;font-size:14px;font-weight:650;margin-bottom:8px}
.profile-entry{display:flex;gap:8px}.profile-entry input{width:100%;flex:1 1 auto;min-width:0;min-height:44px;border:1px solid var(--sage);border-radius:12px;padding:12px;font:inherit;background:var(--card)}
.profile-a .methods{gap:0}.profile-a .method{flex-wrap:nowrap;border:0;border-bottom:1px solid var(--bg-soft);border-radius:0;background:transparent;padding:12px 0;justify-content:space-between}
.profile-a .method-info{min-width:0}.profile-a .method-info strong,.profile-a .method-info .mm{display:block}.profile-a .method .mm{font-size:12px}
.profile-a .method .btn{flex-shrink:0;width:auto;min-width:70px}.profile-a .fine{margin-top:16px;color:var(--ink-soft);font-size:13px}
.profile-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px 0}.profile-actions p{font-size:13px;color:var(--ink-soft)}
.profile-guest{max-width:760px;margin:12px auto 28px;padding:48px;background:var(--bg-soft);border-radius:var(--radius);text-align:center}.profile-guest p{margin:16px auto;max-width:420px}.profile-guest .btn{margin-top:8px}
.profile-a .btn,.profile-a button,.profile-a input{min-height:44px}.profile-a>a{min-height:44px}
@media(max-width:650px){.profile-a{padding-top:24px}.profile-a h1{font-size:30px}.profile-a .profile-identity{gap:14px;align-items:flex-start;margin-bottom:24px}.profile-a .profile-avatar{flex-basis:60px;height:60px;font-size:28px}.profile-email{font-size:14px}.profile-grid{grid-template-columns:1fr;gap:16px}.profile-panel{padding:22px}.profile-membership{display:block;padding:24px}.profile-membership h2{font-size:26px}.profile-channel{width:100%;margin-top:20px}.profile-alternative{margin-top:18px}.profile-entry{flex-wrap:wrap}.profile-entry button{width:100%}.profile-actions{align-items:flex-start}.profile-actions p{max-width:180px}.profile-guest{padding:32px 22px}}

#signup-fields{border:0;padding:0;display:grid;gap:10px}#signup-fields[hidden]{display:none}#signup-fields input,#signup-fields select{min-height:44px;padding:10px;width:100%;box-sizing:border-box;border:1px solid #b7bdad;border-radius:10px;font:inherit;background:#fff}

/* RTL */
/* credential / contact inputs stay LTR islands inside RTL pages (also covers the email and discount-code style fields) */
[dir=rtl] input[type=email],[dir=rtl] input[type=url],[dir=rtl] input[type=tel],[dir=rtl] input[type=password]{direction:ltr;text-align:start}
/* redeem / one-time codes */
[dir=rtl] #redeem-form input,[dir=rtl] #code-value{direction:ltr;text-align:start}
[dir=rtl] .profile-email{unicode-bidi:isolate}
/* Arabic must not be letter-spaced (breaks joining) or forced upper-case */
[dir=rtl] .profile-a h1,[dir=rtl] .profile-a .eyebrow,[dir=rtl] .or{letter-spacing:0;text-transform:none}

/* Mobile UX 2026-10-19 */
.tab{min-width:44px;min-height:44px;line-height:1.3}.auth-check{min-height:44px;align-items:center}.auth-card a{min-height:44px;display:inline-flex;align-items:center}/* B06/B09 accessible authentication states */.auth-card form{display:flex;flex-direction:column;gap:14px}.auth-card .password-toggle{min-height:44px;min-width:44px}html[data-lang=en] .auth-card .password-toggle{min-height:44px}.auth-notice{padding:14px 18px;border:1px solid var(--sage);border-radius:14px;background:var(--bg-soft)}body[data-page=account] main.member-center{max-width:824px;margin-inline:auto;width:100%}#account-guest.auth-card{max-width:824px;margin:16px auto;gap:16px}#account-guest p{margin:0}#account-guest .btn{width:100%;align-self:stretch}#account-guest .guest-create{align-self:center}.support-help section p{margin:0}.support-help section h2{margin:0}.support-help{gap:20px}.support-help del{color:var(--ink-soft);margin-inline-end:6px}

/* B14: consistent password and secondary touch targets. */
.auth-card .btn.mini,.password-toggle{min-height:44px;min-width:44px}
