html,
body {
  height: 100%;
}

.form-signin {
  max-width: 350px;
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="text"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.form-reg {
  max-width: 350px;
  padding: 1rem;
}


/* 自定义模态框样式 - 使用 'custom-' 前缀避免与Bootstrap冲突 */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-modal {
  background-color: #fff;
  border-radius: 0.3rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
}

.custom-modal-header {
  padding: 0.75rem 1.25rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-modal-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  color: #212529;
}

.custom-modal-body {
  padding: 1.25rem;
}

.custom-modal-body p {
  margin-bottom: 0.75rem;
}

.custom-modal-body a {
  color: #0d6efd;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.custom-modal-body a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.custom-modal-footer {
  padding: 0.75rem 1.25rem;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  text-align: right;
}

.custom-btn {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: #6c757d;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.custom-btn:hover {
  background-color: #5c636a;
}

/* IE兼容性修复 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .custom-modal-backdrop {
      background-color: #000;
      filter: alpha(opacity=50);
  }
  
  .custom-modal {
      position: relative;
      margin: 10% auto;
  }
}
