/* 本机角色登录与权限状态。沿用页面的紫色体系，并保持收紧圆角。 */

[hidden] {
  display: none !important;
}

.auth-session {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  color: #29214f;
  border: 1px solid rgba(90, 44, 245, 0.12);
  border-radius: 5px;
  background: #f0edff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.auth-role-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #5a2cf5;
  box-shadow: 0 0 0 3px rgba(90, 44, 245, 0.12);
}

.auth-logout {
  min-height: 28px;
  margin-left: 2px;
  padding: 0 9px;
  color: #5a2cf5;
  border: 0;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.auth-logout:hover {
  color: #fff;
  background: #5a2cf5;
}

.login-button {
  min-width: 92px;
}

.nav-item {
  grid-template-columns: minmax(0, 1fr);
}

.nav-item.is-locked {
  color: #7d809b;
}

.nav-item.is-locked:hover {
  color: #5a2cf5;
}

.nav-access-tag {
  min-width: 34px;
  padding: 5px 6px;
  color: #6a51db;
  border: 1px solid rgba(90, 44, 245, 0.14);
  border-radius: 4px;
  background: #eeeaff;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.nav-item.is-locked .nav-access-tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  vertical-align: 1px;
}

.auth-modal .auth-card {
  width: min(510px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}

.auth-heading {
  margin: 0;
  padding: 24px 26px 20px;
  color: #fff;
  background: linear-gradient(135deg, #4520d9 0%, #6838fa 100%);
}

.auth-heading .eyebrow,
.auth-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.auth-heading h2 {
  margin-top: 5px;
  color: #fff;
}

.auth-heading .icon-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.auth-role-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 20px 26px 4px;
}

.auth-role-guide > div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid #e4e0fa;
  border-radius: 7px;
  background: #f6f4ff;
}

.auth-role-guide .auth-admin-guide {
  grid-column: 1 / -1;
  min-height: 64px;
  border-color: rgba(90, 44, 245, 0.22);
  background: linear-gradient(135deg, #eee9ff 0%, #f7f5ff 100%);
}

.auth-role-guide b {
  color: #2b2350;
  font-size: 12px;
}

.auth-role-guide span {
  color: #746d91;
  font-size: 10px;
  line-height: 1.55;
}

.auth-card > .field {
  margin: 14px 26px 0;
}

.auth-card > .field input,
.auth-card > .field select {
  width: 100%;
  min-height: 46px;
}

.auth-mode-note {
  margin: 16px 26px 0;
  padding: 11px 13px;
  color: #5c5478;
  border-left: 3px solid #5a2cf5;
  border-radius: 4px;
  background: #f0edff;
  font-size: 11px;
  line-height: 1.6;
}

.auth-mode-note b {
  color: #4d28d7;
}

.auth-security-note {
  margin: 12px 26px 0;
  color: #847d9d;
  font-size: 10px;
  line-height: 1.7;
}

.auth-card .modal-actions {
  margin-top: 20px;
  padding: 16px 26px 22px;
  border-top: 1px solid #ece9fa;
  background: #fbfaff;
}

@media (max-width: 1100px) {
  .auth-session {
    order: -1;
  }
}

@media (max-width: 620px) {
  .auth-session {
    width: 100%;
    justify-content: space-between;
  }

  .auth-role-guide {
    grid-template-columns: 1fr;
    margin-inline: 20px;
  }

  .auth-card > .field,
  .auth-mode-note,
  .auth-security-note {
    margin-inline: 20px;
  }

  .auth-card .modal-actions {
    padding-inline: 20px;
  }
}

@media print {
  .auth-session,
  .login-button,
  .auth-modal {
    display: none !important;
  }
}
