/* 登录页样式。调整登录卡片、背景、按钮和窄屏布局。 */

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #0f141a;
  background: #fff;
  --accent: #02a6f2;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.login { width: min(400px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 30px; }
.brand { display: flex; justify-content: center; align-items: center; gap: 10px; height: 80px; margin-bottom: 50px; }
.brand img { display: block; object-fit: contain; }
.brand h1 { margin: 0; font-size: 56px; font-weight: 800; letter-spacing: .06em; line-height: 1; color: #000; transform: translateY(12px); }
.login-mode { display: flex; justify-content: center; gap: 32px; height: 56px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.login-mode button { position: relative; background: transparent; border: 0; padding: 0; color: #999; font-size: 16px; font-weight: 400; cursor: pointer; }
.login-mode button[aria-selected="true"] { color: #0f141a; }
.login-mode button[aria-selected="true"]::after { content: ""; position: absolute; height: 2px; inset: auto 0 -1px; background: #0f141a; }
form, .authorization-form { display: grid; gap: 32px; }
.field { position: relative; min-width: 0; }
.field label { position: absolute; z-index: 1; top: -8px; left: 12px; padding: 0 3px; font-size: 12px; line-height: 16px; color: #666; background: #fff; cursor: text; }
.field input { display: block; width: 100%; height: 48px; padding: 10px 14px; border: 1px solid #d5d5d5; border-radius: 10px; outline: none; font-size: 16px; color: #000; background: transparent; }
.field input:focus { border-color: #0f141a; }
.field input:disabled { cursor: not-allowed; }
.field-password input { padding-right: 49px; }
.password-toggle { position: absolute; top: 1px; right: 1px; display: grid; place-items: center; width: 48px; height: 46px; padding: 0; border: 0; border-radius: 0 9px 9px 0; color: #0f141a; background: transparent; cursor: pointer; }
.password-toggle .eye-open, .password-toggle[aria-pressed="true"] .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: inline; }
button:focus-visible { outline: 2px solid #136da8; outline-offset: 3px; }
.service-status { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; background: #303030; color: #f5f5f5; border: 1px solid #ddd; font-size: 14px; }
.service-result { display: flex; align-items: center; gap: 7px; }
.service-check { flex: none; }
.service-brand { display: grid; justify-items: end; gap: 2px; flex: none; color: #fff; font-size: 11px; line-height: 13px; font-weight: 600; letter-spacing: .1em; }
.service-brand img { display: block; filter: brightness(0) invert(1); }
.login-submit { width: 100%; height: 44px; margin-top: 7px; padding: 0 16px; border: 0; border-radius: 9999px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 400; cursor: pointer; }
.login-submit:hover:not(:disabled) { filter: brightness(.96); }
.login-submit:disabled { opacity: .65; cursor: not-allowed; }
.login-error { margin: -19px 0 -21px; color: #b42318; font-size: 13px; line-height: 1.4; }
.login-notice { margin: -19px 0 -21px; color: #157247; font-size: 13px; line-height: 1.4; }
@media (max-width: 440px) {
  .login { padding-top: 54px; }
  .brand { margin-bottom: 34px; }
}
