/* 未登录公共样式：只抽取原登录视图所需样式，不承载任何业务页面布局。 */
:root {
  color-scheme: light;
  --text: #202936;
  --muted: #697586;
  --primary: #1d6fa3;
  --primary-soft: #e8f2f8;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #eef5ff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.login-view {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 6vw 68px;
  overflow-x: hidden;
  background-color: #eef5ff;
  background-image: linear-gradient(90deg, rgba(238, 245, 255, 0.26), rgba(255, 255, 255, 0.08)), url("/assets/login_glass_bg_clear_1920x1080.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.login-shell {
  width: min(1180px, 100%);
  display: flex;
  justify-content: flex-end;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 80px rgba(36, 64, 120, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1;
}

.brand-logo-text {
  font-weight: 700;
  letter-spacing: 0;
}

.login-logo {
  font-size: 25px;
}

.login-brand strong {
  display: block;
  color: #1f2a44;
  font-size: 28px;
  line-height: 1.15;
}

.login-brand span {
  display: block;
  margin-top: 6px;
  color: #516074;
  font-size: 13px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: #39475e;
  font-weight: 600;
}

.login-card input,
.login-card button {
  width: 100%;
  font: inherit;
}

.login-card input {
  height: 46px;
  border: 1px solid rgba(98, 116, 142, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0 14px;
}

.login-card input:focus {
  border-color: #5d8dff;
  box-shadow: 0 0 0 4px rgba(93, 141, 255, 0.18);
  outline: 0;
}

.login-error {
  padding: 10px 12px;
  border: 1px solid #fecdca;
  border-radius: 14px;
  background: rgba(254, 243, 242, 0.9);
  color: var(--danger);
}

.login-card button[type="submit"] {
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #4d8dff 0%, #7b5cff 100%);
  box-shadow: 0 14px 30px rgba(75, 111, 255, 0.26);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.login-card button[type="submit"]:hover {
  background: linear-gradient(135deg, #5d98ff 0%, #886bff 100%);
  box-shadow: 0 18px 34px rgba(75, 111, 255, 0.3);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.login-card button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.login-icp {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  color: rgba(40, 53, 76, 0.68);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  .login-view {
    padding: 28px 4vw 70px;
  }

  .login-shell {
    justify-content: center;
  }

  .login-card {
    width: 92vw;
    max-width: 420px;
    padding: 28px;
  }

  .login-brand strong {
    font-size: 24px;
  }
}
