* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: url('https://imgs.bootstrapmb.com/2025/6/121137166.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  color: #000;
}

.authincation {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.auth-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  padding: 25px 25px 60px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-form:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-form h4 {
  color: #444;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.6em;
  border-bottom: none;
  padding-bottom: 0;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.4) !important;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 1em;
  transition: all 0.3s;
  color: #000;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  outline: none;
  border: none;
}

.form-control::placeholder {
  color: #666;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group > .form-control {
  flex: 1;
  margin-right: 8px;
}

.input-group .btn {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: #555;
  border-color: #555;
  border-radius: 25px;
  padding: 8px 0;
  font-weight: 500;
  width: 60%;
  transition: background-color 0.3s;
  font-size: 1em;
  color: white;
  border: none;
  margin-top: 15px;
  margin-left: 20%;
  display: block;
  margin-left: auto !important; /* 强制居中 */
  margin-right: auto !important; /* 强制居中 */
  width: 60% !important; /* 确保宽度正确 */
}

.btn-primary:hover {
  background-color: #333;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  transform: scale(0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: #444;
  border-color: transparent;
  background-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-primary:hover {
  background-color: #444444;
  border-color: rgba(255, 255, 255, 0.6);
  color: #000;
}

.mb-3 {
  margin-bottom: 15px;
}

.mb-3 .input-group {
  display: flex;
  align-items: stretch;
}

.new-account p {
  margin-bottom: 0;
  text-align: center;
  font-size: 13px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.new-account a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
}

.new-account a:hover {
  text-decoration: underline;
  color: #333;
}

.text-white {
  color: #000 !important;
}

.text-primary {
  color: #444 !important;
}

.form-text {
  color: #888888;
  font-size: 0.8em;
  margin-top: 5px;
}

/* 动画元素简化 */
.animation {
  display: none;
}

/* 卡片样式优化 */
.authincation-content {
  background-color: transparent;
  border-radius: 12px;
}

/* 移除标签样式 - 不再显示小标题 */
.mb-3 label {
  display: none;
}

/* 容器居中对齐 */
.container.h-100 {
  height: auto !important;
  min-height: 100vh;
}

.row.no-gutters {
  margin: 0;
}

.row.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .auth-form {
    padding: 25px 20px 50px;
    margin: 10px;
    max-width: 280px;
    width: 90%;
  }
  
  .col-md-6 {
    padding: 0 15px;
    max-width: 95%;
  }
  
  body {
    padding: 10px 0;
  }
  
  .btn-primary {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .form-control {
    margin-left: 0;
    margin-right: 0;
  }
}

/* 表单组样式 */
.input-group-text {
  background-color: #333333;
  border: 1px solid transparent;
  border-radius: 8px 0 0 8px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 按钮组样式 */
.btn {
  cursor: pointer;
}

/* Toast通知样式 */
.custom-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  font-size: 14px;
  white-space: nowrap;
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 按钮禁用状态 */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 登录容器 */
.authincation-content {
  background-color: transparent;
  box-shadow: none;
}

/* 按钮样式优化 */
.btn {
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* 表单区域优化 */
.form-control {
  height: unset;
  min-height: 40px;
}

/* 忘记密码链接居中 - 修复：移除强制显示的 !important */
#forgotPasswordLink {
  text-align: center;
  margin: 12px auto;
  width: 100%;
}