html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* 登录页面样式 */
body:has(> .login-container) {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(> .login-container) > header {
  display: none;
}

body:has(> .login-container) > .container-fluid {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body:has(> .login-container) > .container-fluid > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body:has(> .login-container) > footer {
  flex-shrink: 0;
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  color: #6e6e73;
  background: #f5f7fa;
  border-top: 1px solid #e4e8ec;
}

.login-container {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 56px;
  margin: auto;
}

@media (max-width: 576px) {
  .login-card {
    padding: 32px 24px;
  }
}

.login-brand {
  text-align: center;
  margin-bottom: 36px;
}

.login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.35);
}

.login-icon svg {
  width: 40px;
  height: 40px;
}

.login-brand h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.login-brand p {
  font-size: 16px;
  color: #6e6e73;
  margin: 0;
}

.login-form {
  margin-bottom: 28px;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 7px;
}

.login-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  font-size: 17px;
  color: #1d1d1f;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.login-input:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.login-input::placeholder {
  color: #a1a1a6;
}

.login-button {
  width: 100%;
  height: 56px;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.35);
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 122, 255, 0.45);
}

.login-button:active {
  transform: translateY(0);
}

.login-error {
  margin-bottom: 20px;
  padding: 14px 18px;
  font-size: 15px;
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.08);
  border-radius: 14px;
  list-style: none;
}

.login-error ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-field-error {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #ff3b30;
}

.login-footer {
  text-align: center;
  font-size: 14px;
  color: #86868b;
}

/* 用户列表样式 */
.table thead.table-dark th {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
  color: #ffffff;
  font-weight: 500;
  border-color: #2c5282;
}

.table thead.table-dark th:first-child {
  border-top-left-radius: 8px;
}

.table thead.table-dark th:last-child {
  border-top-right-radius: 8px;
}
.user-summary {
  cursor: pointer;
}

.user-summary:hover {
  background-color: rgba(0, 122, 255, 0.04) !important;
}

.user-detail {
  padding: 16px 20px;
  background-color: #f8f9fa;
  border-left: 3px solid #007aff;
}

.detail-row {
  margin-bottom: 10px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.detail-value {
  display: block;
  font-size: 13px;
  color: #333;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e4e4e7;
}