/* 登录页样式：照 AgentFlow/src/app/login/login.module.css 移植为普通 class（小奕 2026-10-28 指定该效果）。 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 system-ui, -apple-system, "PingFang SC", "Helvetica Neue", sans-serif; }
h1, h2, p { margin: 0; }
button { font: inherit; }
.shell {
  position: relative; isolation: isolate; display: grid; place-items: center; min-height: 100svh; overflow: clip;
  padding: 76px 24px 42px; color-scheme: light; color: #1c3048;
  background: radial-gradient(ellipse at 35% 47%, #e3efff 0, transparent 47%), radial-gradient(ellipse at 70% 58%, #dff2fb 0, transparent 46%), #f3f8fa;
}
.particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.content { width: min(100%, 488px); }
.brand { text-align: center; margin-bottom: 28px; }
.brand-line { display: flex; align-items: center; justify-content: center; gap: 18px; }
.logo {
  width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center;
  color: #126276; border: 1px solid white; border-radius: 21px; background: #ffffffb3;
  box-shadow: 0 0 0 9px #ffffff40, 0 8px 25px #397fd112; outline: 1px dashed #8bb9ee; outline-offset: 9px;
}
.brand h1 { font-size: 35px; line-height: 1.2; font-weight: 700; letter-spacing: -1.4px; }
.badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 4px 13px; border-radius: 30px; border: 1px solid #a9ccf5; background: #f0f6ff; color: #175a9b; font-size: 12px; font-weight: 600; letter-spacing: 1px; box-shadow: 0 2px 5px #3777b510; }
.brand > p { margin: 15px 0 0; font-size: 14px; color: #5f768b; line-height: 1.7; }
.card {
  padding: 32px 36px; border: 1px solid #ffffff; border-radius: 26px;
  background: linear-gradient(125deg, #ffffffd9, #f6f9ffab 53%, #d7effac7);
  box-shadow: 0 22px 65px #235d7112, 1px 0 0 1px #81b5e75c, inset 0 0 0 1px #ffffff80;
  backdrop-filter: blur(20px);
}
.card-heading h2 { font-size: 22px; font-weight: 650; letter-spacing: -.4px; }
.card-heading > p { margin-top: 7px; color: #647b8d; font-size: 13px; line-height: 1.7; }
.fields { display: grid; gap: 19px; margin-top: 22px; }
.label { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: #3e5368; }
.label svg { color: #1878c4; }
.input { width: 100%; min-height: 50px; border: 1px solid #cddfe6; border-radius: 12px; padding: 12px 15px; background: #faffffe6; color: #24384e; font-size: 15px; font-family: inherit; box-shadow: 0 2px 4px #153b4f04; transition: border-color .18s, box-shadow .18s; }
.input::placeholder { color: #8495a5; font-size: 14px; }
.input:focus { outline: none; border-color: #1878c4; box-shadow: 0 0 0 3px #1878c41a; }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-toggle { position: absolute; right: 5px; top: 3px; min-height: 44px; min-width: 52px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: #5d7386; font-size: 12px; }
.password-toggle:hover { color: #155ea8; background: #e7f1ff; }
.card .primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px;
  margin-top: 24px; padding: 12px 16px; border: 1px solid transparent; border-radius: 12px;
  color: #fff; background: linear-gradient(100deg, #1768b0, #247fd0); box-shadow: 0 7px 15px #227bc024;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: box-shadow .2s, filter .2s;
}
.card .primary:hover { filter: brightness(1.06); box-shadow: 0 8px 21px #227bc035; }
.security { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin-top: 22px; border: 1px solid #e1edf1; border-radius: 13px; background: #ffffffab; }
.security > svg { flex-shrink: 0; color: #1878c4; margin-top: 2px; }
.security p { font-size: 12px; line-height: 1.8; color: #657b90; }
.security strong { display: block; font-size: 13px; font-weight: 600; color: #40566d; }
.security span { display: block; margin-top: 2px; }
.error { margin-top: 16px; padding: 10px 12px; border: 1px solid #edc2c4; border-radius: 9px; color: #a52b3c; background: #fff2f3; font-size: 13px; line-height: 1.65; }
.footer { display: flex; flex-direction: column; gap: 5px; margin-top: 27px; text-align: center; color: #6b8396; font-size: 11px; letter-spacing: .8px; }
.motion-toggle { position: absolute; top: 22px; right: 24px; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid #e1ebef; border-radius: 24px; background: #ffffffbf; color: #546c80; box-shadow: 0 2px 5px #14354408; font-size: 12px; cursor: pointer; }
.motion-toggle > svg { color: #217dcc; }
.motion-action { margin-left: 6px; padding-left: 10px; border-left: 1px solid #dce8ed; color: #155ea8; }
.shell :focus-visible { outline: 2px solid #247fd0; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
@media (max-width: 600px) {
  .shell { padding: 78px 20px 30px; }
  .brand { margin-bottom: 24px; }
  .brand h1 { font-size: 31px; }
  .brand > p { font-size: 13px; }
  .card { padding: 25px 23px; border-radius: 22px; }
  .motion-toggle { right: 16px; top: 16px; min-height: 44px; }
  .particles { opacity: .55; }
  .footer { font-size: 10px; letter-spacing: .4px; }
}
@media (min-width: 601px) {
  .shell { place-items: start center; }
  .content { margin-top: clamp(34px, 5vh, 66px); }
  .brand { margin-bottom: 20px; }
  .brand h1 { font-size: 31px; }
  .badge { margin-top: 9px; }
  .brand > p { margin-top: 9px; }
  .card { padding: 26px 34px; }
  .card-heading > p { margin-top: 4px; }
  .fields { gap: 13px; margin-top: 14px; }
  .label { margin-bottom: 5px; }
  .input { min-height: 44px; padding: 9px 13px; }
  .card .primary { min-height: 46px; margin-top: 17px; }
  .security { margin-top: 14px; padding: 11px 13px; }
  .footer { margin-top: 16px; }
}
@media (max-height: 780px) and (min-width: 601px) {
  .content { margin-top: 24px; }
  .brand { margin-bottom: 12px; }
  .brand > p { display: none; }
  .card { padding-top: 20px; padding-bottom: 20px; }
  .security { display: none; }
  .footer { margin-top: 10px; }
}
