/**
 * 登录注册页面样式 - login.html
 */

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 通知容器 */
#notificationContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.success {
  border-left: 4px solid #27ae60;
}

.notification.error {
  border-left: 4px solid #e74c3c;
}

.notification.info {
  border-left: 4px solid #3498db;
}

.notification-icon {
  font-size: 18px;
}

/* 认证容器 */
.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-box {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.auth-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

/* 头部 */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
}

.auth-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header p {
  font-size: 14px;
  color: #666;
}

/* 表单组 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #E5E5EA;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-group input:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.error-message {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 5px;
  min-height: 18px;
}

/* 验证码输入组 */
.verification-input-group {
  display: flex;
  gap: 10px;
}

.verification-input-group input {
  flex: 1;
}

.send-code-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.send-code-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.send-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.send-code-btn.countdown {
  background: #95a5a6;
}

/* 服务协议 */
.terms-agreement-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.terms-agreement-group input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  cursor: pointer;
}

.terms-agreement-group label {
  font-size: 13px;
  font-weight: 400;
  color: #666;
  margin-bottom: 0;
  cursor: pointer;
}

.terms-agreement-group a {
  color: #FF6B35;
  text-decoration: none;
}

.terms-agreement-group a:hover {
  text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 切换登录/注册 */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E5E5EA;
}

.auth-switch p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.auth-switch a {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* 返回首页 */
.back-home {
  text-align: center;
  margin-top: 15px;
}

.back-home a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.back-home a:hover {
  color: #FF6B35;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .auth-box {
    padding: 30px 20px;
  }
  
  .auth-header h2 {
    font-size: 20px;
  }
  
  .verification-input-group {
    flex-direction: column;
  }
  
  .send-code-btn {
    width: 100%;
  }
}

