:root {
  color-scheme: light;
  --coral: #d53f33;
  --coral-hover: #b9342a;
  --ink: #242a34;
  --muted: #657080;
  --line: #e3e8ee;
  --background: #f6f7f9;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus { outline: 3px solid #aa392f; outline-offset: 4px; }
html[data-focus-mode="pointer"] :focus { outline: none; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 18px; background: #fff; border: 1px solid var(--coral); border-radius: 6px; }
.skip-link:focus { top: 10px; }
.login-header { height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; margin-right: 20px; }
.brand img { display: block; width: 36px; height: 36px; object-fit: contain; border-radius: 7px; margin-right: 11px; }
.brand span { font-size: 26px; font-weight: 700; }
.back-home { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.back-home img { width: 18px; height: 18px; opacity: .65; margin-right: 7px; }
.back-home:hover { color: var(--coral); }
.login-main { max-width: 1060px; width: calc(100% - 120px); margin: 0 auto; padding: 80px 0 34px; }
.form-heading { margin: 0 0 17px; font-size: 26px; line-height: 1.4; font-weight: 600; }
/* Flex provides the same two-column layout without requiring CSS Grid or flex gap. */
.auth-surface { display: flex; flex-wrap: wrap; overflow: hidden; background: #fff; border: 1px solid #e9edf1; border-radius: 8px; }
.sign-in { width: 55%; min-width: 0; padding: 40px 48px 42px; }
.form-inner { width: 100%; max-width: 460px; }
.login-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 27px; }
.login-tabs button { flex: 1; min-width: 0; min-height: 48px; padding: 10px 8px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.login-tabs button[aria-selected="true"] { color: var(--coral); border-bottom-color: var(--coral); font-weight: 600; }
.login-tabs button:hover { color: var(--coral-hover); }
.field + .field { margin-top: 24px; }
.field label { display: block; margin: 0 0 9px; font-size: 14px; line-height: 1.5; font-weight: 500; }
.field input { display: block; width: 100%; min-width: 0; height: 49px; padding: 0 15px; color: var(--ink); background: #fff; border: 1px solid #8894a3; border-radius: 6px; font-size: 15px; line-height: normal; -webkit-appearance: none; appearance: none; transition: border-color .16s; }
.field input::placeholder { color: #687383; opacity: 1; }
.field input:hover { border-color: #657080; }
.field input:focus { border-color: var(--coral); }
.field input[aria-invalid="true"] { border-color: #b73329; }
.field-error { margin: 7px 0 0; color: #b73329; font-size: 13px; line-height: 1.65; overflow-wrap: break-word; overflow-wrap: anywhere; }
.code-row { display: flex; align-items: stretch; }
.code-row input { flex: 1; width: 0; }
.code-row .button { flex: 0 0 132px; width: 132px; margin-left: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 15px; line-height: 1.6; font-weight: 600; transition: background-color .16s, border-color .16s; }
.button.primary { color: #fff; background: var(--coral); border-color: var(--coral); }
.button.primary:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.button.outline { color: var(--coral); background: transparent; border-color: var(--coral); }
.button.outline:hover { background: #fff1ed; border-color: var(--coral-hover); color: var(--coral-hover); }
#send-code { border-color: #8894a3; }
#send-code:hover { border-color: var(--coral); }
.button:active:not(:disabled) { background: #fff1ed; }
.button.primary:active:not(:disabled) { background: #a92e26; }
.button:disabled { color: #697382; border-color: #dce1e7; background: #f1f3f5; }
.button.primary:disabled { color: #fff; border-color: #aa655e; background: #aa655e; }
.login-submit { margin-top: 32px; width: 100%; }
.password-hint { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.jmsg { margin: 13px 0 0; padding: 10px 12px; border-radius: 5px; background: #f2f5f8; color: #4f5b6b; font-size: 13px; line-height: 1.8; overflow-wrap: break-word; overflow-wrap: anywhere; }
.jmsg:empty { display: none; }
.jmsg.err { color: #a12c24; background: #fff1ef; }
.jmsg.ok { color: #256345; background: #edf7f0; }
#password-result-notice { margin: 0 0 18px; }
.invite { width: 45%; min-width: 0; padding: 45px 40px 40px; border-left: 1px solid #edf0f3; background: #fafbfc; }
.invite-inner { width: 100%; }
.invite h2 { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 600; }
.invite-intro { margin: 12px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.activate-submit { width: 100%; margin-top: 16px; }
.button.activate-submit { color: var(--ink); border-color: #8894a3; background: #fff; }
.button.activate-submit:hover { color: var(--coral-hover); border-color: var(--coral); background: #fff8f5; }
.invite-hint { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 22px 0 0; }
.apply-footer { width: 100%; border-top: 1px solid #edf0f3; padding: 21px 48px 23px; }
.apply-entry { margin: 0; font-size: 14px; line-height: 1.75; }
.apply-entry a { color: var(--coral); display: inline-flex; align-items: center; min-height: 28px; font-weight: 600; margin-left: 6px; }
.apply-entry a img { width: 17px; height: 17px; margin-left: 6px; }
.apply-entry a:hover { color: var(--coral-hover); text-decoration: underline; }
.apply-note { color: var(--muted); margin: 7px 0 0; font-size: 12px; line-height: 1.9; }
.no-script { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; margin: 21px 0 0; }
@media (min-width: 1600px) { .login-main { padding-top: 100px; } }
@media (max-width: 1100px) {
  .login-main { width: calc(100% - 80px); }
  .sign-in, .invite, .apply-footer { padding-left: 30px; padding-right: 30px; }
  .code-row .button { flex-basis: 122px; width: 122px; margin-left: 10px; }
}
@media (max-width: 760px) {
  :root { background: #fff; }
  .login-header { height: 64px; padding: 0 24px; }
  .brand { margin-right: 12px; }
  .brand img { width: 32px; height: 32px; border-radius: 6px; margin-right: 8px; }
  .brand span { font-size: 22px; }
  .back-home { font-size: 13px; }
  .back-home img { width: 15px; height: 15px; margin-right: 5px; }
  .login-main { width: auto; max-width: 460px; padding: 25px 24px 24px; }
  .auth-surface { display: block; border: 0; overflow: visible; border-radius: 0; }
  .sign-in { width: 100%; padding: 0 0 27px; }
  .login-tabs { margin-bottom: 23px; }
  .login-tabs button { min-height: 49px; }
  .field label { font-size: 15px; margin-bottom: 8px; }
  .field input { font-size: 16px; height: 48px; padding: 0 13px; }
  .field + .field { margin-top: 19px; }
  .code-row .button { flex-basis: 118px; width: 118px; }
  .button { font-size: 16px; min-height: 48px; padding: 10px 12px; }
  .login-submit { margin-top: 24px; }
  .password-hint { font-size: 12px; margin-top: 12px; }
  .invite { width: 100%; padding: 24px 0; background: transparent; border-left: 0; border-top: 1px solid var(--line); }
  .invite h2, .invite .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .invite-intro { margin: 0 0 13px; font-size: 15px; font-weight: 600; line-height: 1.7; }
  .activate-submit { margin-top: 12px; }
  .invite-hint { margin-top: 12px; line-height: 1.8; }
  .apply-footer { padding: 19px 0 0; }
  .apply-entry a { min-height: 32px; margin-left: 4px; }
  .apply-entry a img { width: 15px; height: 15px; margin-left: 5px; }
  .apply-note { line-height: 1.8; }
}
@media (max-width: 350px) {
  .login-header { padding: 0 18px; }
  .login-main { padding-left: 18px; padding-right: 18px; }
  .brand span { font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  .code-row .button { font-size: 14px; flex-basis: 110px; width: 110px; margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (forced-colors: active) { .login-tabs button[aria-selected="true"] { border-bottom-color: Highlight; } }
