/* ==========================================================================
   护理管理端登录
   ========================================================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(920px 460px at 88% -12%, #dfedff 0%, rgba(223, 237, 255, 0) 62%),
    radial-gradient(760px 420px at -8% 18%, #eaf4ff 0%, rgba(234, 244, 255, 0) 56%);
  background-attachment: fixed;
}

.login-header {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(219, 231, 245, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.login-header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s;
}

.login-back .icon {
  width: 15px;
  height: 15px;
}

.login-back:hover {
  color: var(--blue-600);
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 24px;
}

.login-card {
  width: min(1040px, 100%);
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  border: 1px solid #e1edfb;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 46px 44px;
  background: linear-gradient(145deg, #f4f9ff 0%, #e9f3ff 55%, #dcebff 100%);
  overflow: hidden;
}

.login-intro::before {
  content: "";
  position: absolute;
  right: -110px;
  top: -130px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.72), rgba(191, 219, 254, 0) 68%);
}

.login-intro::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.9), rgba(224, 242, 254, 0) 70%);
}

.login-intro > * {
  position: relative;
  z-index: 1;
}

.login-intro h1 {
  margin: 14px 0 12px;
  font-size: 32px;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.login-intro > p {
  max-width: 390px;
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}

.login-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: var(--ink-3);
  font-size: 13px;
}

.login-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-points .icon {
  width: 15px;
  height: 15px;
  color: var(--blue-600);
}

.login-art {
  position: relative;
  height: 132px;
  margin-top: auto;
}

.art-shield {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 112px;
  height: 112px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4b93f8, #1d5fe0);
  box-shadow: 0 24px 44px -24px rgba(37, 99, 235, 0.85);
}

.art-shield .icon {
  width: 54px;
  height: 54px;
}

.art-chip {
  position: absolute;
  padding: 6px 11px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 8px 20px -16px rgba(15, 31, 51, 0.4);
}

.art-chip-1 {
  left: 1%;
  top: 4px;
  transform: rotate(-5deg);
}

.art-chip-2 {
  right: 1%;
  top: 2px;
  transform: rotate(4deg);
}

.art-chip-3 {
  right: 10%;
  bottom: 6px;
  transform: rotate(3deg);
}

.art-chip-4 {
  left: 4%;
  bottom: 8px;
  transform: rotate(-3deg);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 44px;
  background: #fff;
}

.login-badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.login-panel h2 {
  margin: 12px 0 4px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.login-panel-head p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12.5px;
}

.login-label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.login-input {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 12px;
  margin-bottom: 16px;
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.login-input:focus-within {
  border-color: #7fb2f5;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.login-input .icon {
  width: 16px;
  height: 16px;
  color: #93a7c0;
  flex: 0 0 auto;
}

.login-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}

.login-input input::placeholder {
  color: #a3b3c7;
}

.login-input input[aria-invalid="true"] {
  color: #b91c1c;
}

.password-toggle {
  flex: 0 0 auto;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--blue-600);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--blue-700);
}

.login-error {
  margin: -4px 0 14px;
  padding: 9px 11px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.5;
}

.login-error[hidden],
.login-session[hidden] {
  display: none !important;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px 20px;
  font-size: 15px;
}

.login-note {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
}

.login-session {
  margin: 0 0 16px;
  padding: 9px 11px;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  background: #f3f9ff;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.6;
}

.login-session a {
  color: var(--blue-700);
  font-weight: 650;
}

.login-footer {
  padding: 18px 0 26px;
  border-top: 1px solid #e4ecf6;
  color: var(--muted);
  font-size: 11.5px;
}

.login-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-footer p {
  margin: 0;
}

.login-footer a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.login-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .login-header-inner {
    height: 66px;
  }

  .login-main {
    padding: 24px 16px;
  }

  .login-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 24px;
  }

  .login-intro {
    padding: 28px 26px 20px;
  }

  .login-intro h1 {
    margin: 10px 0 8px;
    font-size: 25px;
  }

  .login-intro > p {
    font-size: 13px;
  }

  .login-points,
  .login-art {
    display: none;
  }

  .login-panel {
    padding: 24px 26px 30px;
  }

  .login-footer-inner {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .login-intro {
    padding: 22px 20px 16px;
  }

  .login-intro h1 {
    font-size: 22px;
  }

  .login-panel {
    padding: 22px 20px 26px;
  }

  .login-panel h2 {
    font-size: 21px;
  }

  .login-footer {
    padding: 16px 0 22px;
  }

  .login-footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}
