:root { color-scheme: light; --accent: #009fe8; --accent-dark: #007fbd; --text: #18242f; --muted: #687c8c; --line: #dce6ed; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--text); background: #fff; font: 14px/1.5 Arial, "Microsoft YaHei", sans-serif; }
html[data-portal="platform"] { --accent: #167b65; --accent-dark: #105f4e; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header { min-height: 82px; padding: 18px 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #edf1f4; }
.brand { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: 36px; height: 36px; object-fit: contain; }
.brand strong { display: block; font-size: 19px; line-height: 24px; }
.brand small { display: block; font-size: 11px; color: var(--muted); line-height: 17px; }
.switch-portal { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.switch-portal:hover { color: var(--accent); }
.switch-portal svg { width: 15px; height: 15px; }
main { flex: 1; display: grid; place-items: center; padding: 56px 24px 72px; }
.login-panel { width: 360px; max-width: 100%; }
.portal-symbol { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); margin-bottom: 24px; }
.portal-symbol svg { width: 22px; height: 22px; stroke-width: 1.6; }
.portal-label { margin: 0 0 5px; font-size: 12px; color: var(--muted); }
h1 { font-size: 28px; line-height: 1.4; margin: 0 0 32px; font-weight: 600; overflow-wrap: anywhere; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.input-wrap { min-height: 48px; border: 1px solid var(--line); border-radius: 6px; display: flex; gap: 11px; align-items: center; padding: 0 13px; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.input-wrap:has(input[aria-invalid="true"]) { border-color: #c84141; }
.input-wrap > svg { width: 17px; height: 17px; flex-shrink: 0; color: #8296a5; stroke-width: 1.6; }
input { min-width: 0; flex: 1; width: 100%; height: 46px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.password-toggle { width: 30px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; color: var(--muted); background: transparent; }
.password-toggle svg { width: 17px; height: 17px; }
.field-error { display: block; min-height: 18px; margin-top: 5px; font-size: 12px; color: #bf3333; }
.submit-button { width: 100%; min-height: 48px; border: 0; border-radius: 6px; padding: 11px 16px; display: flex; justify-content: space-between; align-items: center; background: var(--accent); color: white; font-weight: 600; }
.submit-button:hover { background: var(--accent-dark); }
.submit-button:disabled { opacity: .5; cursor: not-allowed; }
.submit-button svg { width: 18px; height: 18px; }
.form-status { min-height: 42px; margin: 14px 0 0; color: #98601b; font-size: 13px; overflow-wrap: anywhere; }
footer { padding: 18px 36px; display: flex; align-items: center; justify-content: space-between; color: #81919d; font-size: 11px; }
.environment { display: flex; align-items: center; gap: 6px; }
.environment > span { width: 6px; height: 6px; border-radius: 50%; background: #cd9639; }
@media (max-width: 480px) {
  .site-header { min-height: 72px; padding: 14px 20px; }
  .switch-portal { font-size: 12px; gap: 4px; }
  main { padding: 36px 24px 40px; }
  h1 { font-size: 26px; margin-bottom: 26px; }
  footer { padding: 16px 24px; }
}
