/* pages/login/login.wxss */
.login-container {
  min-height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* 页面头部 */
.login-header {
  padding: 20rpx 32rpx;
  background-color: #ffffff;
}

.header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.home-icon {
  font-size: 32rpx;
  color: #333333;
}

.window-controls {
  display: flex;
  gap: 16rpx;
}

.control-btn {
  width: 24rpx;
  height: 24rpx;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16rpx;
  color: #666666;
}

.language-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rpx;
}

.language-text {
  font-size: 28rpx;
  color: #333333;
}

.language-arrow {
  font-size: 20rpx;
  color: #666666;
}

/* 主要内容区域 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80rpx 32rpx 40rpx;
}

.app-title {
  font-size: 48rpx;
  font-weight: bold;
  color: #333333;
  text-align: center;
  margin-bottom: 80rpx;
}

/* 登录表单 */
.login-form {
  width: 100%;
  max-width: 600rpx;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 32rpx;
  padding: 0 24rpx;
  background-color: #ffffff;
  border: 2rpx solid #e0e0e0;
  border-radius: 12rpx;
  height: 88rpx;
}

.input-icon {
  font-size: 32rpx;
  color: #999999;
  margin-right: 16rpx;
}

.form-input {
  flex: 1;
  height: 100%;
  font-size: 28rpx;
  color: #333333;
  background-color: transparent;
  border: none;
}

.form-input:focus {
  outline: none;
}

.input-group:focus-within {
  border-color: #3cc51f;
}

/* 登录按钮 */
.login-btn {
  width: 100%;
  height: 88rpx;
  background-color: #3cc51f;
  color: #ffffff;
  border-radius: 12rpx;
  font-size: 32rpx;
  font-weight: 500;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32rpx;
}

.login-btn:active {
  background-color: #2ea617;
}

.login-btn.loading {
  background-color: #c0c4cc;
}

.login-btn.disabled {
  background-color: #c0c4cc;
}

/* 用户协议 */
.agreement-section {
  margin-bottom: 40rpx;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12rpx;
  cursor: pointer;
}

.custom-checkbox {
  width: 32rpx;
  height: 32rpx;
  border: 2rpx solid #d0d0d0;
  border-radius: 6rpx;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.custom-checkbox.checked {
  background-color: #3cc51f;
  border-color: #3cc51f;
}

.checkmark {
  color: #ffffff;
  font-size: 20rpx;
  font-weight: bold;
}

.agreement-text {
  font-size: 24rpx;
  color: #333333;
}

/* 其他登录方式 */
.alternative-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16rpx;
}

.alt-login-item {
  font-size: 28rpx;
  color: #333333;
  padding: 8rpx 0;
}

.alt-login-item:active {
  color: #3cc51f;
}

/* 页面底部 */
.login-footer {
  padding: 40rpx 32rpx;
  background-color: #ffffff;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16rpx;
  margin-bottom: 32rpx;
}

.footer-text {
  font-size: 28rpx;
  color: #333333;
}

.disclaimer {
  text-align: center;
}

.disclaimer-text {
  font-size: 24rpx;
  color: #666666;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .main-content {
    padding: 60rpx 24rpx 32rpx;
  }
  
  .app-title {
    font-size: 42rpx;
    margin-bottom: 60rpx;
  }
  
  .input-group {
    height: 80rpx;
    padding: 0 20rpx;
  }
  
  .form-input {
    font-size: 26rpx;
  }
  
  .login-btn {
    height: 80rpx;
    font-size: 30rpx;
  }
  
  .alt-login-item {
    font-size: 26rpx;
  }
  
  .footer-text {
    font-size: 26rpx;
  }
  
  .disclaimer-text {
    font-size: 22rpx;
  }
}
