/* v2 presentation only. The original auth preview and live site stay unchanged. */
.auth-v2-preview { margin: 0; background: #f4f7f4; color: var(--text); font: 16px/1.7 var(--font); }
.auth-v2-preview *, .auth-v2-preview *::before, .auth-v2-preview *::after { box-sizing: border-box; letter-spacing: 0; }
.auth-v2-preview [hidden] { display: none !important; }
.auth-v2-preview :is(a, button, input, select):focus-visible { outline: 3px solid #1c746e; outline-offset: 4px; }
.v2-previewbar { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 9px 24px; background: #e6eeea; border-bottom: 1px solid var(--line); font-size: 13px; }
.v2-previewbar p { margin: 0; }
.v2-previewbar strong { margin-right: 14px; }
.v2-previewbar div { display: flex; align-items: center; gap: 8px; }
.v2-previewbar select { min-height: 36px; max-width: 220px; font: inherit; color: var(--text); background: #fff; border: 1px solid #809a90; border-radius: 4px; padding: 4px 8px; }
.v2-sitehead { max-width: 1128px; margin: auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.v2-brand { display: block; flex: none; }
.v2-brand img { display: block; width: 180px; height: 60px; object-fit: contain; }
.v2-sitehead nav { display: flex; align-items: center; gap: 12px; }
.v2-sitehead nav a { display: grid; place-items: center; min-width: 64px; min-height: 44px; color: #355a57; font-size: 16px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.v2-sitehead nav a[aria-current] { color: #195f58; border-color: #1c746e; }
.auth-v2 { --auth-ink: var(--text); --auth-muted: var(--text-soft); --auth-coral: var(--accent-2-ink); width: min(1040px, calc(100% - 48px)); min-height: 600px; margin: 0 auto; }
.v2-tabs { display: flex; gap: 36px; margin-bottom: 36px; border-bottom: 1px solid #bfcec7; }
.v2-tab { position: relative; padding: 12px 6px 15px; min-height: 60px; min-width: 84px; border: 0; background: transparent; color: var(--auth-muted); font-size: 22px !important; font-weight: 750; cursor: pointer; }
.v2-tab[aria-selected="true"] { color: var(--auth-ink); }
.v2-tab[aria-selected="true"]::after { position: absolute; content: ""; height: 4px; left: 0; right: 0; bottom: -1px; background: #1c746e; }
.v2-heading { margin-bottom: 30px; }
.v2-heading .v2-step { margin-bottom: 12px; }
.v2-heading h1 { margin: 0; font-size: 36px; line-height: 1.4; font-weight: 800; }
.auth-v2 h1:focus { outline: none; }
.v2-step { display: flex; gap: 12px; align-items: center; margin: 0; color: #42615b; font-size: 16px; }
.v2-step__line { display: inline-block; width: 44px; height: 3px; background: #de786b; flex: none; }
.v2-registration { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "guide action"; align-items: stretch; gap: 54px; }
.v2-signup-action { grid-area: action; align-self: start; border-top: 4px solid #78b6a6; background: #fff; padding: 32px; min-height: 280px; }
.v2-signup-action h2 { margin: 0 0 24px; font-size: 26px; line-height: 1.4; }
.v2-signup-action .v2-fine { margin-top: 20px; }
.v2-guide { grid-area: guide; display: flex; flex-direction: column; align-items: flex-start; }
.v2-guide h2 { margin: 0 0 18px; font-size: 20px; }
.v2-guide ul { list-style: none; margin: 0; padding: 0; }
.v2-guide li { position: relative; padding: 0 0 0 20px; color: var(--auth-muted); font-size: 17px; }
.v2-guide li + li { margin-top: 18px; }
.v2-guide li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; background: #b2564c; }
.v2-art { display: block; width: 240px; height: 180px; max-width: 100%; object-fit: contain; }
.v2-guide .v2-art { width: 300px; height: 225px; margin: 8px 0 0; align-self: center; }
.v2-google { display: flex; gap: 12px; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px; border: 1px solid #747775; border-radius: 4px; color: #1f1f1f; background: #fff; font-family: Roboto, Arial, "Microsoft JhengHei", sans-serif !important; font-size: 16px !important; font-weight: 500; line-height: 1.5; cursor: pointer; }
.v2-google img { display: block; width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.v2-google span { min-width: 0; }
.v2-google:hover { background: #f7f9f8; box-shadow: 0 1px 3px #17363a18; }
.v2-google:disabled { cursor: wait; opacity: .64; }
.v2-fine { color: var(--auth-muted); font-size: 16px; margin: 0; line-height: 1.8; }
.v2-switch { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--auth-muted); font-size: 16px; }
.v2-switch a, .v2-textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.v2-login-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: -12px 0 20px; }
.v2-login-heading .v2-heading { margin: 0; }
.v2-login-heading .v2-art { width: 152px; height: 114px; }
.v2-login-grid { display: grid; grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); }
.v2-method { padding: 28px; border: 1px solid var(--line); border-top: 4px solid #78b6a6; border-radius: 6px; background: #fff; }
.v2-method h2 { margin: 0 0 14px; font-size: 23px; }
.v2-method > .v2-fine { margin-bottom: 28px; }
.v2-or { align-self: center; display: grid; place-items: center; color: var(--auth-muted); font-size: 16px; }
.v2-method .v2-fine:last-child { margin-top: 20px; }
.v2-login-footer { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px 0; }
.auth-v2 .auth-field-help, .auth-v2 .auth-field-err, .auth-v2 .auth-count { font-size: 16px; }
.auth-v2 .auth-field label { font-size: 17px; }
.auth-v2 .auth-field input { height: 52px; border-color: #7b958c; }
.auth-v2 .auth-field input[aria-invalid="true"] { border-color: var(--auth-error); }
.auth-v2 .auth-field input[readonly] { background: #eef5f1; }
.auth-v2 .auth-btn { min-height: 52px; font-size: 17px; }
.auth-v2 .auth-toggle { font-size: 16px; padding: 8px 0; text-decoration: underline; text-underline-offset: 5px; }
.auth-v2 .auth-toggle[aria-pressed="true"] { color: #145c55; background: #e9f4ee; padding: 8px 12px; border-radius: 4px; }
.v2-setup-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.v2-identity { padding: 22px 0 0; border-top: 3px solid #78b6a6; }
.v2-identity__label { margin: 0 0 6px; color: var(--auth-muted); font-size: 16px; }
.v2-identity__email { margin: 0 0 16px; font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.v2-identity .v2-art { margin: 12px auto 0; width: 240px; height: 180px; }
.v2-setup-form { padding: 30px; background: #fff; border-top: 3px solid #78b6a6; gap: 26px; }
.v2-password-info { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid #a7c7b7; padding-left: 14px; }
.auth-v2 .auth-count { color: var(--auth-ink); font-weight: 700; }
.auth-v2 .auth-privacy { margin-top: 2px; font-size: 16px; }
.auth-v2 .auth-privacy h2 { font-size: 20px; }
.auth-v2 .auth-privacy dl { margin: 0; font-size: 16px; }
.auth-v2 .auth-privacy dt { margin-top: 18px; font-weight: 750; color: var(--auth-ink); }
.auth-v2 .auth-privacy dd { margin: 4px 0 0; color: var(--auth-muted); }
.auth-v2 .auth-privacy ul { font-size: 16px; margin: 0; }
.auth-v2 .auth-consent { font-size: 16px; }
.auth-v2 .auth-consent a { display: inline-flex; min-height: 44px; align-items: center; }
.v2-submitrow { display: flex; align-items: center; gap: 12px; }
.v2-submitrow .auth-btn:first-child { flex: 1; }
.v2-inline-error { margin-bottom: 24px; }
.v2-alert { border: 1px solid #c98289; border-left: 4px solid #ac3643; border-radius: 4px; padding: 14px 16px; color: #8b2736; background: #fff1f3; font-size: 16px; }
.v2-alert p { margin: 0; }
.v2-alert p + p { margin-top: 8px; }
.v2-status { border-left: 3px solid #59977a; padding: 12px 16px; background: #eaf5ee; color: #25563d; }
.v2-alert:focus { outline: 2px solid #ac3643; outline-offset: 3px; }
.v2-state { width: min(600px, 100%); margin: 0 auto; padding: 16px 0 32px; text-align: center; }
.v2-state .v2-art { margin: 0 auto 20px; width: 256px; height: 192px; }
.v2-state h1 { margin: 0 0 18px; font-size: 34px; line-height: 1.4; }
.v2-state > p { margin: 0 0 24px; color: var(--auth-muted); font-size: 18px; }
.v2-state .auth-actions { justify-content: center; margin-top: 26px; }
.v2-state .v2-google { max-width: 340px; margin: auto; }
.v2-state .v2-alert, .v2-state .v2-status { text-align: left; margin-bottom: 24px; }
.v2-accountname { padding: 22px 16px; margin: 28px 0; border-block: 1px solid #abc9bb; background: #e7f1eb; }
.v2-accountname p { margin: 0; color: var(--auth-muted); }
.v2-accountname strong { display: block; margin: 8px 0; font-size: 27px; color: var(--auth-ink); overflow-wrap: anywhere; }
.v2-accountname small { font-size: 15px; color: var(--auth-muted); }
.v2-choices { display: grid; gap: 14px; text-align: left; }
.v2-choices a, .v2-choices button { min-height: 52px; width: 100%; }
.v2-loading { display: grid; justify-items: center; gap: 20px; padding: 40px 0; font-size: 22px; }
.v2-loading .auth-spinner { margin: 0; }
.v2-sitefoot { max-width: 1040px; margin: 48px auto 0; border-top: 1px solid var(--line); padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text-soft); font-size: 15px; }
.v2-sitefoot a { min-height: 44px; display: inline-flex; align-items: center; color: #275d57; text-underline-offset: 5px; }
@media (max-width: 1050px) {
  .v2-previewbar { flex-wrap: wrap; }
  .v2-registration { gap: 30px; }
  .v2-setup-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 700px) {
  .v2-previewbar { padding: 8px 16px; font-size: 12px; }
  .v2-previewbar p span { display: block; }
  .v2-previewbar div { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); }
  .v2-previewbar select { width: 100%; min-width: 0; font-size: 13px; }
  .v2-sitehead { padding: 12px 16px; gap: 12px; }
  .v2-brand img { width: 138px; height: 46px; }
  .v2-sitehead nav { gap: 2px; }
  .v2-sitehead nav a { min-width: 48px; }
  .auth-v2 { width: calc(100% - 32px); min-height: 500px; }
  .v2-tabs { margin-bottom: 24px; gap: 24px; }
  .v2-tab { font-size: 20px !important; min-height: 54px; padding: 8px 4px 13px; }
  .v2-heading { margin-bottom: 24px; }
  .v2-heading h1 { font-size: 29px; }
  .v2-step { font-size: 16px; gap: 8px; }
  .v2-step__line { width: 24px; }
  .v2-registration { grid-template-columns: minmax(0, 1fr); grid-template-areas: "action" "guide"; gap: 28px; }
  .v2-signup-action { padding: 24px 20px; min-height: 0; }
  .v2-signup-action h2 { font-size: 24px; margin-bottom: 20px; }
  .v2-guide { position: relative; padding: 24px 0 0; border-top: 1px solid var(--line); }
  .v2-guide .v2-art { width: 220px; height: 165px; margin-top: 10px; }
  .v2-guide li { font-size: 16px; }
  .v2-login-heading { gap: 12px; margin-top: 0; }
  .v2-login-heading .v2-art { width: 92px; height: 69px; flex: 0 0 92px; }
  .v2-login-heading h1 { font-size: 28px; }
  .v2-login-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .v2-method { padding: 24px 20px; }
  .v2-or { width: 100%; grid-template-columns: 1fr auto 1fr; gap: 16px; }
  .v2-or::before, .v2-or::after { content: ""; width: 100%; height: 1px; background: var(--line); }
  .v2-setup-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .v2-identity { padding-top: 16px; }
  .v2-identity .v2-art { display: none; }
  .v2-identity__email { font-size: 18px; }
  .v2-setup-form { padding: 24px 18px; }
  .v2-state h1 { font-size: 29px; }
  .v2-state > p { font-size: 17px; }
  .v2-state .v2-art { width: 224px; height: 168px; }
  .v2-state .auth-actions > * { flex: 1 1 100%; }
  .v2-sitefoot { margin-top: 28px; padding: 20px 16px; font-size: 14px; }
}
