/* 登录页样式 - 优化版 */
.login-app { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.container {
  min-height: 100vh;
  padding: 30px 16px 20px;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.container::after {
  content: '';
  position: absolute;
  bottom: -75px;
  left: -75px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.logo-box {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.logo-icon { font-size: 35px; }

.title {
  display: block;
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.subtitle {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
}

.form {
  padding: 24px 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 16px;
}

.form-item { margin-bottom: 16px; }

.input-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.input-box {
  display: flex;
  align-items: center;
  background-color: #f8f9fc;
  border-radius: 10px;
  padding: 0 14px;
  height: 48px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.input-box:focus-within {
  background-color: #fff;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.input-icon {
  font-size: 16px;
  margin-right: 10px;
  opacity: 0.7;
  flex-shrink: 0;
}

.input {
  flex: 1;
  font-size: 14px;
  height: 48px;
  background: transparent;
  color: #333;
  border: none;
  outline: none;
}

/* 验证码区域 */
.code-box { padding-right: 0; }

.code-btn {
  align-self: stretch;
  padding: 0 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

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

.login-btn {
  margin-top: 24px;
  height: 48px;
  line-height: 48px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  width: 100%;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

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

.register-link { display: block; text-align: center; margin-top: 12px; }

/* 登录/注册模式切换动画 */
#confirmItem, #usernameItem, #codeItem { animation: fadeSlideIn 0.25s ease; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.register-text {
  font-size: 13px;
  color: #667eea;
  text-decoration: underline;
  cursor: pointer;
}

.tips {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 8px;
  border-left: 2px solid #667eea;
}

.tip-text { font-size: 12px; color: #667eea; line-height: 1.6; }

.features {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.feature-item { display: flex; flex-direction: column; align-items: center; }

.feature-icon {
  font-size: 22px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-text { font-size: 11px; color: rgba(255, 255, 255, 0.95); font-weight: 500; }
