.admin-login-page {
  --accent: #6b9bf2;
  --accent-hover: #81abfa;
  --accent-active: #5687df;
  --text: #eef4ff;
  --muted: #c3cee2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: #061735 url("/modules/auth/images/admin-login-server-reference.png") center center / cover no-repeat fixed;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.login-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6.5vh 5% 0;
  color: #dae3f5;
  font-size: 12px;
  line-height: 18px;
}

.login-header p {
  margin: 0;
}

.admin-login-page .login-help-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #dae3f5;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.admin-login-page .login-help-button:hover {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}

.login-help-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.admin-login-layout {
  flex: 1;
  width: clamp(300px, 26.8vw, 384px);
  min-height: 0;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: calc(31vh - 18px) 0 96px;
  transform: translateX(1vw);
}

.admin-login-layout .login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 36px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 1px;
}

.login-brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.admin-login-page .login-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  max-width: 1px;
  overflow: hidden;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(50%);
}

.admin-login-layout .notice {
  margin-bottom: 20px;
  box-shadow: 0 4px 18px #0002;
}

#admin-login-form fieldset {
  display: grid;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.login-input {
  position: relative;
  min-width: 0;
}

.login-input svg {
  position: absolute;
  top: 11px;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #5e6470;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.login-input input {
  display: block;
  height: 40px;
  min-height: 40px;
  border: 1px solid #ffffff42;
  border-radius: 0;
  padding: 8px 12px 8px 42px;
  background: #ffffffe0;
  color: #283448;
  font-size: 13px;
  line-height: 22px;
}

.login-input input:hover {
  border-color: #c3d6fc;
}

.login-input input:focus {
  border-color: #9cbefe;
  background: #fff;
}

.login-input input::placeholder {
  color: #636b79;
  opacity: 1;
}

.login-input input:disabled {
  background: #ffffffc2;
  color: #626c7e;
}

#admin-login-form .login-remember {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-height: 20px;
  color: #d6e1f5;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.login-remember input {
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  accent-color: #6b9bf2;
}

.login-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.login-actions .primary {
  width: 168px;
  min-height: 34px;
  border-radius: 18px;
  padding: 5px 20px;
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 4px;
}

#existing-session {
  color: #eef4ff;
}

#existing-session .hint {
  color: #d6e1f5;
}

#existing-session .button,
#existing-session button,
#session-retry {
  min-height: 36px;
  margin-top: 16px;
  border-radius: 18px;
  padding: 6px 20px;
}

#existing-session .button,
#existing-session button {
  margin-right: 8px;
}

#logout,
#session-retry {
  border-color: #c0d2f27a;
  background: #0b2b57b3;
  color: #edf3ff;
}

#logout:hover,
#session-retry:hover {
  border-color: #c0d2f2;
  background: #254a80;
  color: #fff;
}

.login-account-label {
  margin-bottom: 4px;
  color: #d6e1f5;
  font-size: 12px;
}

.login-account {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.login-account,
#account-email {
  overflow-wrap: anywhere;
}

#account-message {
  margin: 16px 0 4px;
  color: #e0e9f8;
  font-size: 13px;
  line-height: 22px;
}

.login-page-footer {
  display: block;
  flex-shrink: 0;
  border: 0;
  padding: 0 24px 6.4vh;
  color: #d3def2;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
}

.login-help-dialog {
  width: min(420px, calc(100% - 40px));
  border: 1px solid #dce2eb;
  border-radius: 6px;
  padding: 28px;
  background: #fff;
  color: #344057;
  box-shadow: 0 16px 64px #0004;
}

.login-help-dialog::backdrop {
  background: #0013338c;
}

.login-help-dialog h2 {
  color: #17233d;
}

.login-help-dialog p {
  margin-bottom: 24px;
  color: #515a6e;
}

.login-help-dialog .primary {
  min-width: 88px;
}

@media (max-width: 600px) {
  .login-header {
    gap: 16px;
    padding: 28px 24px 0;
    font-size: 11px;
  }

  .admin-login-layout {
    width: 320px;
    padding-top: max(90px, calc(34vh - 46px));
    transform: none;
  }

  .login-page-footer {
    padding-bottom: 28px;
    font-size: 11px;
  }
}

@media (max-height: 620px) {
  .login-header {
    padding-top: 24px;
  }

  .admin-login-layout {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .login-page-footer {
    padding-bottom: 24px;
  }
}
