@import url("theme-tokens.css?v=red1");
@font-face { font-family: "JukeCloud Thai"; src: url("fonts/noto-sans-thai-looped-thai.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0E00-0E7F; }
@font-face { font-family: "JukeCloud Thai"; src: url("fonts/noto-sans-thai-looped-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { color-scheme: light; font-family: "JukeCloud Thai", "Noto Sans Thai", "Leelawadee UI", sans-serif; color: var(--jc-text); background: var(--jc-surface-page); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 86% 2%, rgb(229 37 53 / .15) 0, transparent 34%), radial-gradient(circle at 2% 82%, rgb(229 37 53 / .12), transparent 32%), var(--jc-surface-page); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 430px); padding: 38px; border: 1px solid var(--jc-surface-page); border-radius: 24px; background: rgba(255,255,255,.97); box-shadow: 0 24px 70px rgb(63 30 38 / .14); }
.auth-brand { display: inline-flex; align-items: center; color: var(--jc-text); text-decoration: none; }
.auth-brand > img { width: 78px; height: 78px; padding: 5px; border-radius: 18px; background: linear-gradient(145deg, var(--jc-brand-strong), var(--jc-brand-strong)); box-shadow: 0 9px 25px rgb(229 37 53 / .2); object-fit: contain; }
.eyebrow { margin: 34px 0 8px; color: var(--jc-action); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 36px); line-height: 1.2; }
.intro { margin: 12px 0 26px; color: var(--jc-muted); line-height: 1.7; }
form { display: grid; gap: 10px; }
label { margin-top: 6px; font-size: 14px; font-weight: 700; }
input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--jc-border); border-radius: 12px; background: #fff; color: var(--jc-text); font: inherit; }
input:focus { outline: 3px solid rgb(229 37 53 / .18); border-color: var(--jc-action); }
button { min-height: 50px; margin-top: 12px; border: 0; border-radius: 12px; color: #fff; background: var(--jc-action); font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: var(--jc-action); }
.compact-auth-form { gap: 6px; }
.compact-auth-form label { margin-top: 4px; }
.compact-auth-form > button[type="submit"] { margin-top: 9px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 72px; }
.password-toggle { position: absolute; top: 4px; right: 4px; min-height: 40px; margin: 0; padding: 0 12px; border-radius: 9px; color: var(--jc-action); background: var(--jc-surface-page); font-size: 13px; }
.password-toggle:hover { color: #fff; }
.field-help { margin: 0 2px 3px; color: var(--jc-muted); font-size: 12px; line-height: 1.45; }
.email-signup-disclosure { margin-top: 4px; border: 1px solid var(--jc-surface-page); border-radius: 14px; background: var(--jc-surface-page); }
.email-signup-disclosure summary { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 10px 16px; color: var(--jc-action); font-weight: 800; cursor: pointer; list-style: none; }
.email-signup-disclosure summary::-webkit-details-marker { display: none; }
.email-signup-disclosure[open] summary { border-bottom: 1px solid var(--jc-surface-page); }
.email-signup-disclosure form, .email-signup-disclosure > .auth-error { margin: 14px; }
.login-card { padding-block: 24px; }
.login-card .auth-brand > img { width: 68px; height: 68px; }
.login-card .eyebrow { margin-top: 16px; }
.login-card .intro { margin: 6px 0 14px; line-height: 1.5; }
.login-card .social-actions { gap: 7px; }
.login-card .social-button { min-height: 46px; padding-block: 7px; }
.login-card .provider-data-notice { margin-block: 9px; padding: 10px 12px; }
.login-card .separator { margin-block: 9px; }
.login-card .compact-auth-form input { min-height: 44px; padding-block: 8px; }
.login-card .compact-auth-form > button[type="submit"] { min-height: 46px; }
.login-card .auth-next { margin-block: 14px 0; }
.login-card .support { margin-top: 10px; }
.auth-error { padding: 12px 14px; border-radius: 12px; color: #8a1f2d; background: #fff0f2; font-weight: 700; }
.auth-notice { padding: 12px 14px; border-radius: 12px; color: var(--jc-brand-strong); background: var(--jc-surface-page); font-weight: 700; }
.support { display: block; margin-top: 22px; color: var(--jc-muted); line-height: 1.6; }
.support a, .auth-next a, .text-link { color: var(--jc-action); font-weight: 800; }
.social-actions { display: grid; gap: 10px; }
.social-button { display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; border: 1px solid var(--jc-border); border-radius: 12px; color: var(--jc-text); background: #fff; text-decoration: none; font-weight: 800; }
.social-button > span { display: inline-grid; min-width: 28px; height: 28px; place-items: center; font-size: 12px; font-weight: 900; }
.social-button.google { border-color: #747775; color: #1f1f1f; background: #fff; }
.social-button.google:hover { border-color: #5f6368; background: #f8fafd; box-shadow: 0 1px 2px rgba(60,64,67,.18); }
.social-button.google:active { background: #eef3fb; }
.social-button:focus-visible { outline: 3px solid rgb(229 37 53 / .35); outline-offset: 3px; }
.provider-icon.google-icon { min-width: 28px; border-radius: 50%; background: #fff; }
.google-icon svg { width: 20px; height: 20px; }
.social-button.line { color: #fff; border-color: #06c755; background: #06c755; }
.social-button.line:hover { background: #05ae4a; }
.social-button.is-disabled { color: var(--jc-muted); background: var(--jc-surface-page); cursor: not-allowed; }
.social-button.google.is-disabled { border-color: #c4c7c5; color: #7d8799; background: #f2f4f8; }
.provider-data-notice { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--jc-surface-page); border-radius: 12px; color: var(--jc-muted); background: var(--jc-surface-page); font-size: 12px; line-height: 1.65; }
.provider-data-notice a { color: var(--jc-action); font-weight: 800; }
.separator { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; color: var(--jc-muted); font-size: 12px; }
.separator::before, .separator::after { content: ""; flex: 1; height: 1px; background: var(--jc-surface-page); }
.auth-next { margin: 22px 0 0; text-align: center; color: var(--jc-muted); }
.signup-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 70px; }
.signup-header { display: flex; align-items: center; justify-content: space-between; }
.signup-hero { position: relative; max-width: 820px; margin: 64px 0 38px; padding-left: 30px; }
.signup-hero::before { position: absolute; top: 4px; bottom: 7px; left: 0; width: 5px; border-radius: 99px; content: ""; background: linear-gradient(var(--jc-action),var(--jc-action)); }
.signup-hero .eyebrow { margin-top: 0; }
.signup-hero h1 { font-size: clamp(38px, 5.1vw, 60px); line-height: 1.16; letter-spacing: -.035em; }
.signup-hero .intro { max-width: 680px; font-size: 18px; }
.signup-auth { margin: 0 auto; }
.signup-auth h2, .onboarding-panel h2 { margin: 0; font-size: 28px; }
.onboarding-panel { padding: 34px; border: 1px solid var(--jc-surface-page); border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgb(63 30 38 / .11); }
.onboarding-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.onboarding-heading .eyebrow { margin-top: 0; }
.trial-badge, .recommended { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: #1f6b4d; background: #dcf8e9; font-size: 13px; font-weight: 800; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card { position: relative; display: flex; min-height: 430px; flex-direction: column; padding: 25px; border: 1px solid var(--jc-surface-page); border-radius: 20px; background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.plan-card.featured { border: 2px solid var(--jc-action); box-shadow: 0 16px 36px rgb(229 37 53 / .13); }
.plan-card.selected { transform: translateY(-5px); border-color: #1db879; box-shadow: 0 16px 36px rgba(21,128,89,.14); }
.plan-card .recommended { position: absolute; top: 18px; right: 18px; }
.plan-card h3 { margin: 8px 0; font-size: 25px; }
.plan-card p { min-height: 72px; color: var(--jc-muted); line-height: 1.55; }
.plan-card .price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 18px; }
.plan-card .price strong { font-size: 32px; }
.plan-card .price span { color: var(--jc-muted); }
.plan-card ul { flex: 1; margin: 0 0 20px; padding-left: 20px; color: var(--jc-text); line-height: 1.8; }
.plan-card button { width: 100%; }
.business-form { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--jc-surface-page); }
.business-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 8px; }
.business-row button { min-width: 250px; margin: 0; }
.form-status { min-height: 24px; margin: 12px 0 0; color: var(--jc-muted); font-weight: 700; }
[hidden] { display: none !important; }
@media (max-width: 840px) { .plan-grid { grid-template-columns: 1fr; } .plan-card { min-height: 0; } .plan-card p { min-height: 0; } }
@media (max-width: 520px) {
  .auth-shell { padding: 0; }
  .auth-card { min-height: 100vh; border: 0; border-radius: 0; padding: 32px 24px; }
  .signup-shell { width: min(100% - 28px, 1180px); }
  .signup-hero { margin: 42px 0 28px; padding-left: 19px; }
  .signup-hero h1 { font-size: 36px; }
  .onboarding-panel { padding: 22px 16px; }
  .onboarding-heading { align-items: start; flex-direction: column; }
  .business-row { grid-template-columns: 1fr; }
  .business-row button { min-width: 0; }
}

/* Red identity: surface-specific contrast and logo proportions. */
body { background: radial-gradient(ellipse at 90% 0, rgb(229 37 53 / 9%), transparent 34rem), var(--jc-surface-page); }
.auth-brand > img, .login-card .auth-brand > img { width: 210px; height: 62px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.auth-card input { border-color: var(--jc-field-border); }
.auth-card input:focus, .auth-card button:focus-visible, .social-button:focus-visible { outline: 3px solid var(--jc-focus); outline-offset: 3px; }
.auth-card > form > button:hover { background: var(--jc-action-hover); }

/* Optional consent is not a full-height authentication card. */
.marketing-consent { margin: 0 0 24px; padding: 16px 20px; width: 100%; border: 1px solid var(--jc-field-border); border-radius: 16px; background: #fff; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.consent-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.marketing-consent h2 { margin: 0; font-size: 16px; }
.marketing-consent h2 span { font-size: 14px; font-weight: 400; }
.marketing-consent p { margin: 8px 0; max-width: 85ch; }
.marketing-consent .consent-status { margin: 0; font-weight: 700; }
.marketing-consent summary { cursor: pointer; min-height: 44px; padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; }
.consent-settings > p { margin-top: 0; }
.consent-info { color: var(--jc-muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.consent-actions button { min-height: 44px; min-width: 128px; margin: 0; padding: 9px 18px; border: 1px solid var(--jc-action); border-radius: 10px; color: var(--jc-action); background: #fff; font-size: 14px; }
.consent-actions button:hover { background: var(--jc-surface-page); }
.marketing-consent :focus-visible, .marketing-consent:focus { outline: 3px solid var(--jc-focus); outline-offset: 3px; }
.consent-actions[aria-busy="true"] { opacity: .7; }
@media (max-width: 520px) { .marketing-consent { padding: 14px; } .consent-actions button { flex: 1; min-width: 110px; } }
