:root {
  color: #17213b;
  background: #f4f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --blue: #364f91;
  --blue-dark: #26396e;
  --red: #d20011;
  --ink: #17213b;
  --muted: #66708a;
  --line: #dce1ed;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f4f6fb; }
button, input { font: inherit; }
a { color: var(--blue); }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
}

.login-intro {
  padding: clamp(42px, 7vw, 96px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 16%, rgba(210, 0, 17, .22), transparent 24%),
    linear-gradient(145deg, #1d2d5e 0%, var(--blue) 62%, #283e79 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-panel, .header-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}
.logo-panel { background: #fff; border-radius: 14px; padding: 13px 17px; margin-bottom: 46px; box-shadow: 0 14px 34px rgba(7, 16, 46, .2); }
.logo-panel img { display: block; width: min(250px, 54vw); height: auto; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.login-intro .eyebrow { color: #ffb8be; }
.login-intro h1 { max-width: 700px; margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.08; letter-spacing: -.04em; }
.intro-copy { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.8; }
.trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 48px 0 0; padding: 0; list-style: none; }
.trust-list li { min-height: 126px; padding: 18px; border: 1px solid rgba(255,255,255,.17); border-radius: 16px; background: rgba(255,255,255,.07); }
.trust-list li > span { color: #ff9da6; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.trust-list div { display: grid; gap: 6px; margin-top: 17px; }
.trust-list b { font-size: 15px; }
.trust-list small { color: rgba(255,255,255,.7); line-height: 1.55; }

.login-card { align-self: center; width: min(470px, calc(100% - 48px)); margin: 40px auto; padding: clamp(30px, 5vw, 52px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 30px 90px rgba(32, 49, 91, .12); }
.card-heading h2 { margin: 0; font-size: 31px; letter-spacing: -.03em; }
.card-heading > p:last-child { margin: 10px 0 28px; color: var(--muted); }
.field { display: grid; gap: 9px; margin: 0 0 18px; color: #303a53; font-size: 14px; font-weight: 700; }
.field input { width: 100%; height: 48px; padding: 0 14px; color: var(--ink); border: 1px solid #cbd2e1; border-radius: 10px; outline: none; background: #fff; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(54,79,145,.11); }
.captcha-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 8px; align-items: center; }
.captcha-row img { width: 112px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fb; }
.captcha-row input { height: 44px; }
.text-button { padding: 0; border: 0; color: var(--blue); background: none; cursor: pointer; font-size: 13px; }
.agreement { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.agreement input { margin-top: 4px; accent-color: var(--blue); }
.agreement a { margin: 0 2px; }
.primary-button, .secondary-button { border-radius: 10px; cursor: pointer; font-weight: 800; transition: transform .15s, opacity .15s; }
.primary-button { width: 100%; height: 50px; border: 0; color: #fff; background: var(--blue); box-shadow: 0 11px 24px rgba(54,79,145,.2); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .62; transform: none; }
.secondary-button { padding: 10px 16px; border: 1px solid var(--line); color: var(--blue); background: #fff; }
.form-message { min-height: 20px; margin: 0 0 12px; color: var(--red); font-size: 13px; line-height: 1.5; }
.form-message.success { color: #147048; }
.support-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #eef0f5; color: var(--muted); font-size: 12px; line-height: 1.6; }

.account-header { height: 82px; padding: 0 clamp(24px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.header-brand { gap: 16px; color: var(--ink); }
.header-brand img { width: 170px; }
.header-brand span { display: grid; padding-left: 16px; border-left: 1px solid var(--line); }
.header-brand small { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.account-main { width: min(1180px, calc(100% - 48px)); margin: 46px auto 80px; }
.account-hero { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 58px); border-radius: 24px; color: #fff; background: linear-gradient(132deg, #273b75, var(--blue)); box-shadow: 0 24px 56px rgba(37,57,110,.18); }
.account-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -80px; top: -100px; border: 50px solid rgba(210,0,17,.14); border-radius: 50%; }
.account-hero .eyebrow { color: #ffbdc2; }
.account-hero h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; }
.account-hero > p:not(.eyebrow) { position: relative; z-index: 1; color: rgba(255,255,255,.75); }
.identity-summary { position: relative; z-index: 1; display: flex; gap: 46px; margin: 34px 0 0; }
.identity-summary div { display: grid; gap: 7px; }
.identity-summary dt { color: rgba(255,255,255,.62); font-size: 12px; }
.identity-summary dd { margin: 0; font-size: 15px; font-weight: 800; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #64dfa4; box-shadow: 0 0 0 4px rgba(100,223,164,.15); }
.application-section { margin-top: 46px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 28px; }
.section-heading > p { color: var(--muted); font-size: 14px; }
.application-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.application-card { display: grid; min-height: 230px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 32px rgba(37,53,91,.06); }
.application-card .app-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.application-card h3 { margin: 22px 0 7px; font-size: 18px; }
.application-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.application-meta { align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.role-pill { padding: 6px 9px; border-radius: 999px; color: var(--blue); background: #eef2ff; font-size: 11px; font-weight: 800; }
.open-link { font-size: 13px; font-weight: 800; text-decoration: none; }
.application-card.disabled { box-shadow: none; background: #f9fafc; }
.application-card.disabled .app-mark { background: #a2a9b8; }
.application-card.disabled .role-pill { color: #737b8b; background: #e9ebf0; }
.empty-page { width: min(620px, calc(100% - 44px)); min-height: 100vh; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-page img { width: min(270px, 70vw); margin-bottom: 40px; }
.empty-page h1 { margin: 0 0 28px; }
.link-button { display: grid; width: auto; height: 46px; padding: 0 20px; place-items: center; text-decoration: none; }

@media (max-width: 940px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { min-height: auto; padding: 44px 28px 56px; }
  .logo-panel { margin-bottom: 34px; }
  .login-intro h1 { font-size: clamp(36px, 9vw, 54px); }
  .trust-list { margin-top: 36px; }
  .login-card { margin: 42px auto 64px; }
  .application-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { min-height: 0; }
  .login-card { width: calc(100% - 28px); padding: 28px 20px; border-radius: 18px; }
  .captcha-row { grid-template-columns: 96px 1fr; }
  .captcha-row img { width: 96px; }
  .captcha-row .text-button { grid-column: 2; justify-self: start; }
  .account-header { height: auto; padding: 18px 20px; }
  .header-brand img { width: 132px; }
  .header-brand span { display: none; }
  .account-main { width: calc(100% - 28px); margin-top: 22px; }
  .identity-summary { gap: 25px; flex-direction: column; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}
