/* 登录页面样式 */

.login-container {
  min-height: calc(100vh - 400px);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.login-wrapper {
  width: 100%;
  max-width: 500px;
  padding: 0 20px;
}

.login-form {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-type {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  border-bottom: 2px solid #eee;
}

.type-item {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: bold;
  color: #606266;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.type-item:hover {
  color: #CC2131;
}

.type-item.active {
  color: #CC2131;
}

.type-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #CC2131;
}

.form-content {
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 16px;
  transition: all 0.3s;
}

.form-group:focus-within {
  border-color: #CC2131;
  box-shadow: 0 0 0 2px rgba(204, 33, 49, 0.1);
}

.form-group .iconfont {
  font-size: 20px;
  color: #909399;
  margin-right: 12px;
}

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

.form-input::placeholder {
  color: #c0c4cc;
}

.captcha-img {
  width: 120px;
  height: 40px;
  cursor: pointer;
  margin-left: 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.code-input {
  flex: 1;
}

.sms-input {
  flex: 1;
}

.btn-code {
  margin-left: 12px;
  padding: 8px 16px;
  background: #CC2131;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s;
}

.btn-code:hover {
  background: #D94164;
}

.btn-code:disabled {
  background: #c0c4cc;
  cursor: not-allowed;
}

.login-tip {
  font-size: 12px;
  color: #909399;
  text-align: center;
  margin-bottom: 24px;
}

.btn-login {
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 16px;
}

.btn-login:hover {
  background: #D94164;
}

/* 响应式 */
@media (max-width: 768px) {
  .login-form {
    padding: 24px;
  }

  .type-item {
    padding: 10px 20px;
    font-size: 14px;
  }

  .form-group {
    padding: 0 12px;
  }

  .captcha-img {
    width: 100px;
    height: 36px;
  }
}
