:root { --red: #b51f2e; --red-dark: #891522; --ink: #17262d; --muted: #6c797e; --line: #dfe5e7; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-screen { position: relative; min-height: 100vh; overflow: hidden; background: #18242a; }
.login-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) contrast(1.03); }
.login-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,27,31,.82) 0%, rgba(32,21,24,.54) 45%, rgba(94,12,25,.2) 70%, rgba(15,28,34,.3) 100%), linear-gradient(180deg, rgba(11,21,26,.18), rgba(11,21,26,.58)); }
.login-network { position: absolute; inset: 0; pointer-events: none; opacity: .42; }
.login-network::before, .login-network::after, .login-network span { content: ""; position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.76), transparent); transform-origin: left center; }
.login-network::before { left: 6%; bottom: 24%; width: 48%; transform: rotate(-8deg); }
.login-network::after { left: 18%; bottom: 18%; width: 44%; transform: rotate(10deg); }
.login-network span:nth-child(1) { left: 8%; top: 33%; width: 31%; transform: rotate(17deg); }
.login-network span:nth-child(2) { left: 22%; top: 26%; width: 28%; transform: rotate(-14deg); }
.login-network span:nth-child(3) { left: 36%; top: 42%; width: 22%; transform: rotate(28deg); }
.login-network span:nth-child(4) { left: 12%; top: 52%; width: 38%; transform: rotate(-22deg); }

.auth-header { position: absolute; z-index: 3; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: 30px clamp(30px, 4vw, 72px); }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.auth-brand > span:last-child { display: flex; flex-direction: column; }
.auth-brand strong { font-size: 25px; letter-spacing: .08em; line-height: 1.25; }
.auth-brand small { color: rgba(255,255,255,.64); font: 700 9px/1.4 Arial, sans-serif; letter-spacing: .16em; }
.auth-brand-mark { display: grid; grid-template-columns: repeat(2, 14px); grid-template-rows: repeat(2, 14px); gap: 3px; padding: 7px; background: var(--red); border-radius: 4px; box-shadow: 0 8px 24px rgba(80,0,10,.24); }
.auth-brand-mark i { display: block; background: #fff; }
.auth-brand-mark i:last-child { transform: rotate(45deg) scale(.72); }
.back-home { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; color: #26383e; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7); border-radius: 24px; box-shadow: 0 8px 24px rgba(12,26,32,.16); font-size: 14px; font-weight: 700; }
.back-home:hover { color: var(--red-dark); }

.login-brand-copy { position: absolute; z-index: 2; left: clamp(44px, 7vw, 130px); top: 50%; width: min(560px, 44vw); color: #fff; transform: translateY(-42%); text-shadow: 0 3px 22px rgba(0,0,0,.4); }
.login-brand-copy > p { margin: 0 0 18px; color: #ffd8dc; font-size: 17px; font-weight: 700; letter-spacing: .18em; }
.login-brand-copy h1 { margin: 0; font-size: clamp(38px, 4vw, 64px); line-height: 1.3; letter-spacing: .035em; }
.login-brand-copy > span { display: block; max-width: 520px; margin-top: 22px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.9; }
.brand-capabilities { display: flex; gap: 10px; margin-top: 28px; }
.brand-capabilities span { padding: 7px 13px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 3px; font-size: 12px; backdrop-filter: blur(5px); }

.login-card { position: absolute; z-index: 4; top: 50%; right: clamp(42px, 7vw, 128px); width: min(440px, calc(100% - 48px)); padding: 34px 38px 28px; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.82); border-radius: 10px; box-shadow: 0 28px 70px rgba(12,25,31,.32); transform: translateY(-47%); backdrop-filter: blur(14px); }
.login-card-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.mini-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #fff; background: var(--red); border-radius: 4px; font-size: 20px; font-weight: 800; }
.login-card-brand div { display: flex; flex-direction: column; }
.login-card-brand strong { font-size: 18px; line-height: 1.3; }
.login-card-brand small { color: #879196; font-size: 10px; letter-spacing: .12em; }
.login-card h2 { margin: 0; font-size: 27px; }
.login-subtitle { margin: 8px 0 22px; color: var(--muted); font-size: 13px; }
.login-tabs { display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.login-tab { position: relative; height: 44px; color: #758187; background: transparent; border: 0; font-size: 14px; font-weight: 700; }
.login-tab.active { color: var(--red-dark); }
.login-tab.active::after { content: ""; position: absolute; right: 14%; bottom: -1px; left: 14%; height: 3px; background: var(--red); }
.auth-field { display: block; margin-bottom: 15px; }
.auth-field > span:first-child { display: block; margin-bottom: 7px; color: #47575d; font-size: 13px; font-weight: 700; }
.auth-field input { width: 100%; height: 46px; padding: 0 13px; color: #25383f; background: #fff; border: 1px solid #cfd9dc; border-radius: 4px; outline: none; }
.auth-field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,31,46,.11); }
.field-with-action, .field-with-captcha { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 9px; }
.field-with-action button { color: var(--red-dark); background: #fff4f5; border: 1px solid #dfb7bc; border-radius: 4px; font-size: 12px; font-weight: 700; }
.field-with-action button:hover:not(:disabled) { color: #fff; background: var(--red); border-color: var(--red); }
.field-with-action button:disabled { color: #8a9599; background: #f1f3f4; border-color: #d8dfe1; cursor: not-allowed; }
.auth-submit { width: 100%; min-height: 46px; margin-top: 5px; color: #fff; background: linear-gradient(90deg, #a61928, #c62a38); border: 0; border-radius: 4px; box-shadow: 0 8px 20px rgba(181,31,46,.2); font-size: 14px; font-weight: 700; }
.auth-submit:hover { background: var(--red-dark); }
.auth-status { min-height: 20px; margin: 9px 0 0; color: var(--red-dark); font-size: 12px; text-align: center; }
.login-card-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 3px; color: #8a959a; font-size: 12px; }
.login-card-links a { color: var(--red-dark); font-weight: 700; }
.auth-agreement { margin: 18px 0 0; padding-top: 15px; color: #9aa3a6; border-top: 1px solid #edf0f1; font-size: 11px; text-align: center; }
.auth-footer { position: absolute; z-index: 3; right: 0; bottom: 18px; left: 0; color: rgba(255,255,255,.56); font-size: 11px; text-align: center; }

.auth-success-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 29, .48);
  backdrop-filter: blur(5px);
}

.auth-success-dialog {
  width: min(440px, 100%);
  padding: 38px 34px 32px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(181, 31, 46, .16);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(20, 25, 31, .28);
}

.auth-success-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  color: #ffffff;
  background: var(--red);
  border-radius: 50%;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(181,31,46,.24);
}

.auth-success-dialog h2 { margin: 0; color: #17262d; font-size: 24px; }
.auth-success-dialog p { margin: 14px 0 26px; color: #5f6d72; font-size: 15px; line-height: 1.8; }
.auth-success-dialog button { min-width: 170px; min-height: 44px; padding: 0 22px; color: #fff; background: var(--red); border: 0; border-radius: 5px; font-weight: 700; }
.auth-success-dialog button:hover { background: var(--red-dark); }

.password-screen { min-height: 100vh; padding: 28px 24px 62px; background: radial-gradient(circle at 8% 22%, rgba(195,32,47,.08), transparent 24%), radial-gradient(circle at 88% 70%, rgba(44,111,125,.09), transparent 26%), #f8f7f7; }
.password-header { display: flex; align-items: center; justify-content: space-between; width: min(1200px, 100%); margin: 0 auto; }
.auth-brand.dark { color: #1d3037; }
.auth-brand.dark small { color: #7c898d; }
.password-header > p { display: flex; flex-direction: column; margin: 0; color: #768388; font-size: 11px; text-align: right; }
.password-header > p strong { color: var(--red); font-family: Arial, sans-serif; font-size: 20px; }
.password-card { width: min(1040px, 100%); margin: 58px auto 0; padding: 38px 48px 42px; background: rgba(255,255,255,.96); border: 1px solid #e5e7e8; border-radius: 9px; box-shadow: 0 18px 54px rgba(42,42,42,.13); }
.password-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.password-card-head p { margin: 0 0 3px; color: var(--red); font: 800 11px/1 Arial, sans-serif; letter-spacing: .13em; }
.password-card-head h1 { margin: 0; font-size: 30px; }
.password-card-head a { color: var(--red-dark); font-size: 13px; font-weight: 700; }
.password-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 36px; }
.password-rules { padding: 25px 24px; background: #f6f7f7; border: 1px solid #e2e7e8; border-radius: 5px; }
.password-rules h2 { margin: 0 0 20px; font-size: 16px; }
.password-rules ol { margin: 0; padding: 0; list-style: none; }
.password-rules li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; margin-bottom: 16px; color: #536269; font-size: 13px; line-height: 1.7; }
.password-rules li > span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: #fff; background: #89959a; border-radius: 3px; font-size: 11px; font-weight: 700; }
.password-rules > div { margin-top: 24px; padding: 14px; background: #fff; border-left: 3px solid var(--red); }
.password-rules > div strong { color: var(--red-dark); font-size: 13px; }
.password-rules > div p { margin: 5px 0 0; color: #7c888d; font-size: 12px; line-height: 1.7; }
.password-form { padding-top: 2px; }
.password-form .auth-field { display: grid; grid-template-columns: 116px minmax(0,1fr); align-items: center; gap: 12px; margin-bottom: 14px; }
.password-form .auth-field > span:first-child { margin: 0; }
.password-form b { color: var(--red); }
.password-form .auth-submit { margin-left: 128px; width: calc(100% - 128px); }
.password-form .auth-status { margin-left: 128px; }
.captcha-code { color: #7d1830; background: repeating-linear-gradient(-18deg, #faf4f5, #faf4f5 5px, #e8eef0 6px, #e8eef0 7px); border: 1px solid #d5dcde; border-radius: 4px; font: italic 800 21px/1.2 Georgia, serif; letter-spacing: 4px; }
.password-footer { margin-top: 52px; color: #8a969a; font-size: 11px; text-align: center; }

@media (max-width: 1050px) {
  .login-brand-copy { width: 42vw; }
  .login-card { right: 34px; }
}

@media (max-width: 820px) {
  .login-background { object-position: 38% center; }
  .login-brand-copy { display: none; }
  .login-card { right: 50%; transform: translate(50%, -46%); }
  .password-layout { grid-template-columns: 1fr; }
  .password-rules { display: none; }
}

@media (max-width: 600px) {
  .auth-header { padding: 20px; }
  .auth-brand strong { font-size: 20px; }
  .auth-brand-mark { grid-template-columns: repeat(2, 11px); grid-template-rows: repeat(2, 11px); }
  .back-home { padding: 9px 13px; font-size: 12px; }
  .login-card { width: calc(100% - 28px); padding: 28px 22px 24px; }
  .login-card-links { align-items: flex-start; flex-direction: column; }
  .auth-footer { padding: 0 18px; }
  .password-screen { padding: 20px 14px 44px; }
  .password-header > p { display: none; }
  .password-card { margin-top: 36px; padding: 28px 20px 32px; }
  .password-card-head { align-items: flex-start; flex-direction: column; }
  .password-form .auth-field { grid-template-columns: 1fr; gap: 6px; }
  .password-form .auth-submit { width: 100%; margin-left: 0; }
  .password-form .auth-status { margin-left: 0; }
}
