/* 认证页面样式（登录、注册） */

.auth-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #096dd9 100%);
  padding: 20px;
}

.auth-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  color: var(--text-primary);
  font-size: 24px;
  margin: 0;
}

.auth-header h2 i {
  color: var(--primary-color);
  margin-right: 10px;
}

.auth-form {
  margin-bottom: 20px;
}

.auth-form .form-group label i {
  margin-right: 5px;
  color: var(--primary-color);
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}

.checkbox-label span {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 500;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

/* 当模态框显示时，使用flex居中 */
.modal[style*="display: flex"] {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.modal-close:hover {
  background-color: var(--bg-secondary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 用户条款内容 */
.terms-content {
  color: var(--text-primary);
  line-height: 1.8;
}

.terms-content h4 {
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 16px;
}

.terms-content h4:first-child {
  margin-top: 0;
}

.terms-content p {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .auth-card {
    padding: 30px 20px;
  }

  .auth-header h2 {
    font-size: 20px;
  }

  .modal-content {
    max-width: 95%;
  }
}
