.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.auth-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

.auth-box {
  background-color: var(--color-bg);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.auth-logo a {
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.auth-logo a:hover {
  transform: scale(1.05);
}

/* Logo图标样式 */
.auth-logo i {
  font-size: 3rem;
  color: var(--color-primary);
}

/* Logo图片样式 */
.auth-logo .logo-image {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--color-text-light);
  font-size: 1rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  z-index: 1;
}

.input-group .form-control {
  padding-left: 3.5rem;
}

/* 输入框基础样式 - 直角，48px高度 */
.form-control {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border-radius: 0; /* 直角，无圆角 */
  font-size: 16px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
  outline: none;
}

.form-control::placeholder {
  color: var(--color-text-light);
}

/* 注册关闭提示 */
.register-closed-message {
  padding: 2rem 0;
}

.register-closed-message .alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: none;
  background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
  border-left: 4px solid #ffc107;
}

.register-closed-message .alert i {
  font-size: 1.5rem;
  color: #ff9800;
  margin-top: 0.25rem;
}

.register-closed-message .alert-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.register-closed-message .alert p {
  color: #666;
  line-height: 1.6;
}

.register-closed-message .contact-info {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.register-closed-message .contact-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.register-closed-message .contact-info h5 i {
  color: var(--color-primary);
}

.register-closed-message .contact-info ul {
  margin: 0;
}

.register-closed-message .contact-info li {
  padding: 0.5rem 0;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.register-closed-message .contact-info li i {
  color: var(--color-secondary);
  width: 20px;
  text-align: center;
}

/* 邮箱验证码容器 - 输入框和按钮并排 */
.email-code-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.email-code-wrapper .form-control {
  flex: 1;
}

/* 发送验证码按钮 */
.btn-send-code {
  height: 48px;
  min-width: 120px;
  padding: 0 1.5rem;
  border: 1px solid var(--color-primary);
  border-radius: 0;
  background-color: var(--color-bg);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-send-code:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-send-code:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--color-bg-light);
  border-color: var(--color-border);
  color: var(--color-text-light);
}

/* 添加验证码组样式 */
.captcha-group {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.captcha-input {
  flex: 1;
}

.captcha-image {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-light);
}

#captchaCanvas {
  display: block;
}

.captcha-refresh {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  cursor: none;
}

.captcha-image:hover .captcha-refresh {
  opacity: 1;
}

.captcha-refresh:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) rotate(180deg);
}

/* 添加邮箱验证码组样式 */
.verification-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.verification-input {
  flex: 1;
}

.send-code-btn {
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: var(--transition);
}

.send-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 注册按钮禁用状态 - 不改变颜色，只改变光标 */
.btn-primary:disabled,
.btn-primary.disabled {
  cursor: not-allowed;
  opacity: 1;
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: none;
}

.checkbox-label input {
  cursor: none;
}

/* 添加模态框内链接样式 */
.checkbox-label a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.forgot-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.auth-footer p {
  margin-bottom: 0.5rem;
}

.auth-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-footer .back-home-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 400;
}

.auth-footer .back-home-link:hover {
  color: var(--color-primary);
}

/* 添加模态框样式 */
.modal-content {
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.modal-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

.modal-body h6 {
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.modal-body h6:first-child {
  margin-top: 0;
}

.modal-body p {
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-body ul {
  color: var(--color-text-light);
  line-height: 1.6;
  padding-left: 1.5rem;
}

.modal-body ul li {
  margin-bottom: 0.5rem;
}

.modal-footer {
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
}

@media (max-width: 576px) {
  .auth-box {
    padding: 2rem;
  }

  .auth-title {
    font-size: 1.75rem;
  }

  .captcha-group {
    flex-direction: column;
  }

  .captcha-image {
    width: 100%;
  }

  #captchaCanvas {
    width: 100%;
  }

  .verification-group {
    flex-direction: column;
  }

  .send-code-btn {
    width: 100%;
  }
}

/* ========================================
   消息提示样式（黑白极简风格）
   ======================================== */

.auth-message {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation-duration: 0.5s;
}

.auth-message i {
  font-size: 16px;
  flex-shrink: 0;
}

/* 成功提示 - 黑色边框 */
.alert-success.auth-message {
  background-color: #f8f8f8;
  border-color: #000000;
  color: #1a1a1a;
}

.alert-success.auth-message i {
  color: #000000;
}

/* 错误提示 - 深灰边框 */
.alert-danger.auth-message {
  background-color: #f8f8f8;
  border-color: #666666;
  color: #1a1a1a;
}

.alert-danger.auth-message i {
  color: #666666;
}

/* 信息提示 - 浅灰边框 */
.alert-info.auth-message {
  background-color: #ffffff;
  border-color: #e5e5e5;
  color: #666666;
}

.alert-info.auth-message i {
  color: #666666;
}

/* 警告提示 - 中灰边框 */
.alert-warning.auth-message {
  background-color: #f8f8f8;
  border-color: #999999;
  color: #1a1a1a;
}

.alert-warning.auth-message i {
  color: #999999;
}

/* 动画效果 */
.animate__fadeInDown {
  animation-name: fadeInDown;
}

.animate__fadeOutUp {
  animation-name: fadeOutUp;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
}
